I have a table with a few thousand rows. The table contains two columns, name
and email
. I have several duplicate rows, for example:
- John Smith | john@smith.com
- John Smith | john@smith.com
- Erica Smith | erica@smith.com
- Erica Smith | erica@smith.com
What would be the easiest way to delete all duplicate results. For example, such that the table's content would = SELECT name, DISTINCT(email) FROM table
.