Answers for "mysql delete where every value is duplicate rows except one"

SQL
0

mysql delete duplicate rows except one

DELETE FROM NAMES
 WHERE id NOT IN (SELECT * 
                    FROM (SELECT MIN(n.id)
                            FROM NAMES n
                        GROUP BY n.name) x)
Posted by: Guest on July-18-2020

Code answers related to "mysql delete where every value is duplicate rows except one"

Code answers related to "SQL"

Browse Popular Code Answers by Language