How to delete duplicate rows with SQL?

DELETE FROM table WHERE id NOT IN
    (SELECT MAX(id) FROM table GROUP BY date);

Leave a Comment