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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQL listagg with distinct

user9311128Apr 6 2021

Hi,
I need to build a select query that concatenates the unique values and distinct the duplicate values in a column. Can anyone help please?
I tried with listagg, concatenates well but not able to distinct.
Data Source:
image.pngData Output Expected:
image.png
Thank you

This post has been answered by Frank Kulash on Apr 6 2021
Jump to Answer

Comments

Processing

Post Details

Added on Apr 6 2021
4 comments
1,589 views