I have a table with columns for ID, firstname, lastname, address, email and so on.
ID
firstname
lastname
address
email
Is there any way
DELETE FROM table WHERE id NOT IN (SELECT MIN(id) FROM table GROUP BY email)
This keeps the lowest, first inserted id's for every email.