196_Delete Duplicate Emails
Write a SQL query to delete all duplicate email entries in a table namedPerson
, keeping only unique emails based on its smallest Id.
For example, after running your query, the abovePerson
table should have the following rows:
Solution: self join
Last updated