Created
October 30, 2009 02:29
-
-
Save latompa/222042 to your computer and use it in GitHub Desktop.
find duplicate records
This file contains 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 name, | |
COUNT(name) | |
FROM users | |
GROUP BY name | |
HAVING ( COUNT(name) > 1 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment