Skip to content

Instantly share code, notes, and snippets.

@dreammonkey
Created December 5, 2016 07:55
Show Gist options
  • Save dreammonkey/4f098f6643ebce7047e90b6c63a55b6e to your computer and use it in GitHub Desktop.
Save dreammonkey/4f098f6643ebce7047e90b6c63a55b6e to your computer and use it in GitHub Desktop.
SELECT field, COUNT(*) c FROM table GROUP BY field HAVING c > 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment