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!

remove duplicate values in semicolon separated

AmivaJun 27 2019 — edited Jun 28 2019

I have a column country with duplicate values. Wanted to remove duplicates from column . Please help me to write sql query to remove duplicate values ,Trim spaces in semicolon separate values  and sor the  countries.

Actual

Country

US; US; Australia

Australis;US; China;US; Australia

--------------------------------------

Expected

Country

Australia;US

Australia;China;US

Thank you.

Comments
Post Details
Added on Jun 27 2019
10 comments
3,939 views