Skip to content

Finding Duplicate Records in MySQL

So I was needed to find some duplicate records in a table that had more than 3,000 records. I stumbled upon this query which made my life easier.

SELECT `field`, COUNT(`field`)
FROM `table`
GROUP BY `field`
HAVING ( COUNT(`field`) > 1 )