OyvindLE
7/16/2013 - 2:15 PM

SQL: Count duplicate records

SQL: Count duplicate records

SELECT YourColumn, COUNT(*) TotalCount
FROM YourTable
GROUP BY YourColumn
HAVING COUNT(*) > 1
ORDER BY COUNT(*) DESC