Possible Duplicate:
Remove duplicate rows in MySQL
I have a table "recipientscore" that looks like this:
- recipientid / messageid
- 1 / 1
- 2 / 2
- 3 / 2
- 4 / 2
- 5 / 3
- 6 / 4
What I want to do is delete all the records that appear twice or more. I do not want to keep one version of each duplicate records. It would look like this after clean up:
- recipientid / messageid
- 1 / 1
- 5 / 3
- 6 / 4
Would you have an idea on how to do that?
Thanks!