I have the following in the table:
id QTY_IN Price_IN QTY_Out Price_out
1 150000 10.01 150000 10.01
2 15 10 5 15
3 25 12 35 18
4 25 20 35 25
5 45 25 15 30
Base on the above, I want to product the result below:
id QTY_IN Price_IN QTY_Out Price_out
1 150000 10.01 150000 10.01
2 5 10 5 15
2 10 10 10 18
3 25 12 25 18
4 25 20 25 25
5 10 25 10 25
5 15 25 15 30
5 20 25 0 0
any suggestion on how to solve is greatly appreciates.
thank
id QTY_IN Price_IN QTY_Out Price_out
1 150000 10.01 150000 10.01
2 15 10 5 15
3 25 12 35 18
4 25 20 35 25
5 45 25 15 30
Base on the above, I want to product the result below:
id QTY_IN Price_IN QTY_Out Price_out
1 150000 10.01 150000 10.01
2 5 10 5 15
2 10 10 10 18
3 25 12 25 18
4 25 20 25 25
5 10 25 10 25
5 15 25 15 30
5 20 25 0 0
any suggestion on how to solve is greatly appreciates.
thank