Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Modificando uma consulta MySQL que remove duplicatas

SELECT * FROM   
  (SELECT * FROM persons ORDER BY deleted ASC, date DESC) AS p
GROUP BY first_name,last_name,work_phone