SQL Language (MOSC)

MOSC Banner

loop in select statment

edited Dec 9, 2012 11:35PM in SQL Language (MOSC) 5 commentsAnswered ✓
if i have this data

the first table

itemno   required

1              10

2              40

3              50

the second table

lotno   item   qty

1           1        20

2           2       30

3           2        15

4           3         10

5          3          35

6          3           20

the result

itemno     required     lot     qty/lot

1                 10               1          10

2                40                2           30

                                       3           10

3                 50               5            35

                                       6            15

i need how item need from lot to use it in production?

thanks

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center