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, Case Operator

User_7FAONMay 5 2022

Select * from t1;
ID NAME SALARY
----- ------- ----------
1 ABC 5000
1 ABC 10000
2 DEF 20000
2 DEF 30000

Output:
---------

ID Name Salary1 Salary2
--- ------ -------- --------
1 ABC 5000 10000
2 DEF 20000 30000

Can anyone please solve this query by using pivot operator or any other method. Please!

This post has been answered by mathguy on May 5 2022
Jump to Answer
Comments
Post Details
Added on May 5 2022
1 comment
233 views