Answers for "mysql suppress duplicates"

SQL
0

mysql delete older duplicates

delete test
   from test
  inner join (
     select max(id) as lastId, email
       from test
      group by email
     having count(*) > 1) duplic on duplic.email = test.email
  where test.id < duplic.lastId;
Posted by: Guest on August-17-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language