Created
August 25, 2014 05:26
-
-
Save birchestx/331667e9e3c1c301a87b to your computer and use it in GitHub Desktop.
Show duplicates 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 id, COUNT( * ) , MAX( ID ) AS dupes | |
FROM method_codes | |
GROUP BY code | |
HAVING ( | |
COUNT( * ) >1 | |
) | |
LIMIT 0 , 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment