christiniaroelin
Programmer
Hi
I have the query that returns the following data:
CUST_ID DT SUM(Scrpt_CNT)
---------------- --------- ---------------------
901 28-OCT-05 0
903 07-OCT-05 0
903 14-OCT-05 0
903 21-OCT-05 0
903 28-OCT-05 0
905 07-OCT-05 21
905 14-OCT-05 24
905 21-OCT-05 26
905 28-OCT-05 35
906 07-OCT-05 0
906 14-OCT-05 0
I would like the output to be the following:
cust_id date sum date sum date sum
901 28-OCT-05 0
903 07-OCT-05 0 14-OCT-05 0 21-OCT-05 0
....
....
basically transposing columns to rows for date and sum for each distinct cutomer id.
Please help!!
Thanks for your time and help!!
Chtistinia
I have the query that returns the following data:
CUST_ID DT SUM(Scrpt_CNT)
---------------- --------- ---------------------
901 28-OCT-05 0
903 07-OCT-05 0
903 14-OCT-05 0
903 21-OCT-05 0
903 28-OCT-05 0
905 07-OCT-05 21
905 14-OCT-05 24
905 21-OCT-05 26
905 28-OCT-05 35
906 07-OCT-05 0
906 14-OCT-05 0
I would like the output to be the following:
cust_id date sum date sum date sum
901 28-OCT-05 0
903 07-OCT-05 0 14-OCT-05 0 21-OCT-05 0
....
....
basically transposing columns to rows for date and sum for each distinct cutomer id.
Please help!!
Thanks for your time and help!!
Chtistinia