Cross tab table

Cross tab table

 

  

Hi all,
I am trying to find the best way to create a cross tab table. (I am runnin
9i)
for example

I have a table that looks like the following

id type
1 a
1 b
2 a
3 c

and I need a table that looks like this...

id a_tag b_tag c_tag
1 Y Y N
2 Y N N
3 N N Y

Any help would be appreciated.

Skip Eckles



*********************************************************************

The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.

Oracle LazyDBA home page