Pages

Thursday 10 January 2013

Count Duplicate Records – Rows

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

No comments:

Post a Comment