Answers for "query count duplicates mysql"

SQL
10

find duplicates mysql column

SELECT name, COUNT(*) c FROM table GROUP BY name HAVING c > 1;
Posted by: Guest on April-20-2020
3

mysql remove duplicates

DELETE FROM table_name WHERE id 
       NOT IN ( SELECT id FROM table_name 
                   GROUP BY field_1, field_2)
Posted by: Guest on June-18-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language