I have a table which has records like this,
order_no line_no color size qty
888 1 202 900 20
888 2 202 910 10
888 3 202 930 6
888 4 405 900 8
888 5 405 910 21
888 6 405 930 40
Now i need to create a report using the above table and need the result set like below,
order_no line_no color size qty
888 1 202 900 20
888 1 202 910 10
888 1 202 930 6
888 2 202 900 20
888 2 202 910 10
888 2 202 930 6
888 3 202 900 20
888 3 202 910 10
888 3 202 930 6
888 4 405 900 8
888 4 405 910 21
888 4 405 930 40
888 5 405 900 8
888 5 405 910 21
888 5 405 930 40
888 6 405 900 8
888 6 405 910 21
888 6 405 930 40
I tried using self-merge to get this result, but i couldnt.
Any advice would greatly appreciate.
Thanks.
order_no line_no color size qty
888 1 202 900 20
888 2 202 910 10
888 3 202 930 6
888 4 405 900 8
888 5 405 910 21
888 6 405 930 40
Now i need to create a report using the above table and need the result set like below,
order_no line_no color size qty
888 1 202 900 20
888 1 202 910 10
888 1 202 930 6
888 2 202 900 20
888 2 202 910 10
888 2 202 930 6
888 3 202 900 20
888 3 202 910 10
888 3 202 930 6
888 4 405 900 8
888 4 405 910 21
888 4 405 930 40
888 5 405 900 8
888 5 405 910 21
888 5 405 930 40
888 6 405 900 8
888 6 405 910 21
888 6 405 930 40
I tried using self-merge to get this result, but i couldnt.
Any advice would greatly appreciate.
Thanks.