Skip to content

196. Delete Duplicate Emails

https://leetcode.com/problems/delete-duplicate-emails/

sql
delete p1 from Person p1, Person p2 where p1.Email=p2.Email and p1.id>p2.Id