I have the data coming from an SQL in the below format as per screenshot 1 and I would need in the format as per the screenshot 2.
Please note the data that is in Screenshot 1 is dynamic. There can be any number of Rows and any number of columns. Also, I need this to be in a single SQL Query and not a PL/SQL Procedure.
Current SQL Output:
Desired SQL Output:
Can someone please shed some light on this?
Thanks, Abhishek.