Possible Duplicate:
MySQL Duplicate rows
how to delete duplicate rows from a table in mysql
I have data that looks something along the lines of:
22205 | 2179 | 85
8306 | 2179 | 178
11164 | 2179 | 178
23873 | 2179 | 178
8308 | 2179 | 314
22203 | 2179 | 314
22201 | 2178 | 85
I'm trying to figure out a query that will let me remove the duplicates of the third column. As in we should only have one 178 and one 314. But keeping in mind that it can duplicate as long as the second column doesn't duplicate so final result should look like:
22205 | 2179 | 85
8306 | 2179 | 178
22203 | 2179 | 314
22201 | 2178 | 85
Can anyone help?