Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> SQL*PLUS select statment
Afternoon all I have a simple query that I am running to get a dataset
for BIRT. The query runs fine but I need to manipulate the data into a
single column; Here is an example:
SQL> select
ONLINEFX.EVERYDAY_SUMMARY.COUNT,ONLINEFX.EVERYDAY_SUMMARY.GOOD_COUNT,ONLINEFX.EVERYDAY_
SUMMARY.FAIR_COUNT,ONLINEFX.EVERYDAY_SUMMARY.UNACCEPTABLE_COUNT
2 from ONLINEFX.EVERYDAY_SUMMARY
3 where ONLINEFX.EVERYDAY_SUMMARY.PERIOD = to_char(sysdate-1, 'YYYY-
MM-DD');
COUNT GOOD_COUNT FAIR_COUNT UNACCEPTABLE_COUNT ---------- ---------- ----------
------------------
6577 6146 91 340
I want to have the data returned in the format of multiple rows and a single column like this:
COUNT 6577 GOOD_COUNT 6146 FAIR_COUNT 91
Cheers,
-Steve
Received on Wed May 30 2007 - 10:29:11 CDT
![]() |
![]() |