Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> merge columns as rows in a result
hi,
I have a table like
FROM QTY TO
L1 2 L2 L2 4 L3 L1 5 L4
Now i want to conver this into
L1 2
L2 -2
L2 4
L3 -4
L1 5
L4 -5
Can do this somehow with only a single SQL and no PL/SQL.
Thanks
Ritesh
Received on Tue Nov 19 2002 - 12:07:27 CST