Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PIVOT Dynamic Columns Oracle 12.2

DataVaderJun 18 2020 — edited Jul 15 2020

Hello Oracle Community,

I want to create an new query, where I have to bring the records to the projection, each value as a new column. Problem with Pivot is, I cannot use a dynamic IN list with a subquery. Problem of using PIVOT XML is, I get only one column in return. So is there any trick I can solve my problem without using PL/SQL, Dynamic SQL or creating types and functions ?

DataVader

Comments
Post Details
Added on Jun 18 2020
54 comments
5,127 views