I need to select all data having non-duplicate IDs.. here's my sample table..
----------------------------------------------------------------------------------
ID        | Zip-Code       | Search Query        | ID_LIST
----------------------------------------------------------------------------------
1         | 1000           | Query Sample 1      | 13,14,15,
----------------------------------------------------------------------------------
2         | 2000           | Query Sample 2      | 16,13,17,
----------------------------------------------------------------------------------
3         | 3000           | Query Sample 3      | 18,17,13,
----------------------------------------------------------------------------------
4         | 4000           | Query Sample 4      | 15,16,17,18,
----------------------------------------------------------------------------------
5         | 5000           | Query Sample 5      | 19, 20,
u can notice that IDs 1 and 2 have duplicate, which is 13 on ID_LIST
2 and 3 also have duplicate, which is 13 and 17.
What I want to do is make it like this...
----------------------------------------------------------------------------------
ID        | Zip-Code       | Search Query        | ID_LIST
----------------------------------------------------------------------------------
1         | 1000           | Query Sample 1      | 13,14,15,
----------------------------------------------------------------------------------
2         | 2000           | Query Sample 2      | 16,17,
----------------------------------------------------------------------------------
3         | 3000           | Query Sample 3      | 18,
----------------------------------------------------------------------------------
5         | 5000           | Query Sample 5      | 19,20,
What query would be good for this? Any Help?