Created
May 1, 2014 18:59
-
-
Save rezen/70bfec2fe02e768863a5 to your computer and use it in GitHub Desktop.
mysql find duplicates of column value
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 email, | |
COUNT(email) AS NumOccurrences | |
FROM users | |
GROUP BY email | |
HAVING ( COUNT(email) > 1 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment