how to check if there are duplicate rows in sql code example Example: find duplicates mysql column SELECT name, COUNT(*) c FROM table GROUP BY name HAVING c > 1;