| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Need help Reformatting output
Ah - a nice tricky one!
The explanation can be lengthy. The solution involves use of decode. The best advice I can give is to refer you to the chapter on Decode in the Koch / Loney Oracle Press book ('Oracle Complete Reference'). The chapter is entitled 'DECODE - Amazing Power in a Single Word'.
peter
edinburgh
-----Original Message-----
Sent: 12 December 2002 02:59
To: Multiple recipients of list ORACLE-L
I am looking for a way to display rows as columns. For example:
Id name value
1 a 5
1 b 10
2 a 15
2 b 20
I need it as:
name 1 2
a 5 15
b 10 20
Thank you in advance
Sergei.
scan all attachments. http://www.bgs.ac.uk *********************************************************************
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Robson, Peter
INET: pgro_at_bgs.ac.uk
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Dec 12 2002 - 05:59:33 CST
![]() |
![]() |