Created
August 15, 2013 14:03
-
-
Save matthisk/6241062 to your computer and use it in GitHub Desktop.
Find duplicates in a table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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