SQL Language (MOSC)

MOSC Banner

Removing duplicate string in a column

edited Jun 5, 2020 2:15PM in SQL Language (MOSC) 6 commentsAnswered ✓

Hi,

A column contains duplicate email address stored in it.

String:

shyam@gmail.com,naresh@gmail.com,ram@gmail.com,shyam@gmail.com,naresh@gmail.com,shyam@gmail.com,kavita@gmail.com

In the above string, "shyam@gmail.com" is repeated thrice and "naresh@gmail.com" is repeated twice.

The data should be stored as - shyam@gmail.com,naresh@gmail.com,ram@gmail.com,kavita@gmail.com

In other words, there are no duplicate email address stored in the field.

Please let me know how do we achieve the same.

Thanks,

Krishna

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center