'How to filter row in sql if column with comma seprated that contains with duplicate values
I have a table Sample with data stored like below:
| Id | Name |
|---|---|
| 1 | abc, def, ghi |
| 2 | cbc, deb, bbb, cbc |
| 3 | aaa, bbb, ccc |
| 4 | ddd, ddd, eee |
I need output like:
| Id | Name |
|---|---|
| 1 | abc, def, ghi |
| 3 | aaa, bbb, ccc |
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
