Mysql
 sql >> Database >  >> RDS >> Mysql

Modifica di una query MySQL che rimuove i duplicati

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