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!

SQL column vlaues to single row

wefty-OracleNov 4 2016 — edited Nov 4 2016

Hi All,

I have a table/sql  like this...

==================================================================

SELECT 1001 ID,'Duplicate' name,'Yes' status,'test date' com from dual

union

SELECT 1001 ID,'check' name,'No' status,'test date' com from dual

union

SELECT 1001 ID,'reflected' name,'Yes' status,'ok' com from dual

union

SELECT 1002 ID,'merged' name,'Yes' status,'test date' com from dual

union

SELECT 1002 ID,'executed' name,'No' status,'test date....' com from dual

================================================================

Final output all columns vlaues into single row

          

IDNAME VALUESSTATUSCOMNAME VALUESSTATUSCOMNAME VALUESSTATUSCOM
1001DuplicateYestest datecheckNotest datereflectedYesok
1002executedNotest datemergedYestest date

Please hlep me on this....

This post has been answered by Etbin on Nov 4 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2016
Added on Nov 4 2016
7 comments
916 views