Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> rows as headers of columns

rows as headers of columns

From: Henry <web_poster03_at_yahoo.com>
Date: 9 Nov 2004 18:41:49 -0800
Message-ID: <b6015d6e.0411091841.9d90504@posting.google.com>


I like the following query results, in which one column contains the header names. How can I can modify the query to return results in a single statement.

seq# category name
====== ======== =======

1      student    jim
2      student    John
3      student    smith
4      student    Fred
5      teacher    Rob
6      teacher    Adam
7      teacher    Bill
8      teacher    Tom

The format I want will be like:
seq# student teacher
====== ======== =======

1      jim      
2      John
3      smith
4      Fred
5                 Rob
6                 Adam
7                 Bill
8                 Tom

Thanks Received on Tue Nov 09 2004 - 20:41:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US