Created
September 13, 2018 08:55
-
-
Save csaba-farkas/b91fb07b7ab4d0a93e386b80d92d477d to your computer and use it in GitHub Desktop.
[Finding duplicate records in database] #SQL
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 | |
name, email, COUNT(*) | |
FROM | |
users | |
GROUP BY | |
name, email | |
HAVING | |
COUNT(*) > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment