You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deletefrom Person where Email in (select Email from (select Email from Person t1 group by Email havingcount(*) >1) t) and id not in (select id from (select id from Person t1 group by Email order by id) t1);
--second solusion
DELETE p1 FROM Person p1, Person p2 WHEREp1.Email=p2.EmailANDp1.Id>p2.Id;