Example of an Oracle PIVOT clause with subquery

后端 未结 2 1025
心在旅途
心在旅途 2021-02-02 09:55

Oracle\'s definition of the PIVOT clause specifies that there is a possibility to define a subquery in the IN clause. A fictional example of what I would imagine th

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 10:19

    i had a similar requirement. I achieved this via pl sql wrote a dynamic sql and added it to the pivot IN clause. Ofcourse pivot query was also a dynamic sql. But in normal pivot clause this is not possible, using sql.

提交回复
热议问题