sql - Rows multiplication needed -


problem description: warehouse... received 10 pc of 1 product , 3 pc of same product 1 container. have different user_def_note_2 values. table inventory:

sku_id;qty_on_hand;container_id;user_def_note_2

sku1;10;k001;ot 15/2013

sku1;3;k001;wi 14/2011

i need print 10 x label first user_def_note_2 value , 3 second.

raporting software input 1 row = 1 label

how "multiple rows" in case?

i did standard join on rownum, , works fine 1 row case. (i mean know how multiple single row*quantity - dont know how multiply 1*qty1 +2*qty2). problem i'm using rownum...and rownum global.

any ideas?

select t.* inventory t join (select level n dual        connect level <= (select max(qty_on_hand) inventory))  on n <= t.qty_on_hand 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -