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!

use listagg multiple rows columns

User_NZDZHNov 4 2022

Hello,
I have following data in table
Table A
column ID type code
1 ETH CAN
1 ETH LAB
1 ETH POL
1 EYE BL
1 CIT CAN
I like results to be displayed as
ID ETH_LIST EYE_LIST CITIZEN_LIST (Heading)
1 CAN,LAB,POL BL CAN (Results)
Please help with query.
Thanks

Comments
Post Details
Added on Nov 4 2022
8 comments
3,884 views