Answers for "where in query delete duplicate ids mysql"

SQL
4

mysql delete duplicates

DELETE FROM CONTACTS
WHERE ID NOT IN
      (SELECT *
       FROM (SELECT max(ID)		
             FROM CONTACTS
             GROUP BY EMAIL) t);
 -- ⇓ Test it ⇓ (Fiddle source link)
Posted by: Guest on July-13-2021

Code answers related to "where in query delete duplicate ids mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language