Yes, it's true.
The syntax is something like:
SELECT col1, col2, col3
FROM table
pivot
col1 on col3
values in col1 will be shown at a record level, values on col3 will become
column names and values in col2 will be shown in the corresponding
intersection.
Have fun !!!
2010/4/27 ucb_richp <[email protected]>
> One of my favorite Ask Tom articles: http://bit.ly/cM15bK which
> discusses how to pivot table data in one's queries. In the example Tom
> cites, he uses a decode command. I have heard that Oracle 11g has an
> actual "pivot" command. Is this true? If so, how does one go about
> implementing it? I tried googling the topic already and there seems to
> be a lack of concise information about this "pivot" command.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Oracle PL/SQL" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/Oracle-PLSQL?hl=en
--
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en