Skip to content

Instantly share code, notes, and snippets.

@matthisk
Created August 15, 2013 14:03
Show Gist options
  • Save matthisk/6241062 to your computer and use it in GitHub Desktop.
Save matthisk/6241062 to your computer and use it in GitHub Desktop.
Find duplicates in a table
SELECT myColumn, count( myColumn ) AS myCount
FROM myTable
GROUP BY myColumn
HAVING myCount >1
ORDER BY myCount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment