Answers for "mysql query to remove remove duplicate records"

SQL
4

mysql delete older 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 "mysql query to remove remove duplicate records"

Code answers related to "SQL"

Browse Popular Code Answers by Language