Multiple Rows to Multiple columns
504410Jan 24 2008 — edited Jan 24 2008I have a question. Hope you can please help me out here.
create table cb_test_col(
pID number(11),
CMID varchar2(50),
CTID number(11),
descr varchar2(50)
)
PID CMID CID DESCR
15896 118705 10378 SELLER
15896 118705 10379 SELLER
15896 118705 10380 SELLER
15896 118705 10381 SELLER
15896 118705 10382 SELLER
I need an output like this
PID CMID CID1 CID2 CID3 CID4 CID5
15896 118705 10378 10379 10380 10381 10382
Please help.
Thanks,
SP.