Last active
March 13, 2016 15:47
-
-
Save shavidzet/daa16dfd055b329abd98 to your computer and use it in GitHub Desktop.
Detect duplicate entries
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 | |
| code, COUNT(*) | |
| FROM | |
| customer_codes | |
| GROUP BY | |
| code | |
| HAVING | |
| COUNT(*) > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment