Skip to content

Instantly share code, notes, and snippets.

@rpuglielli
Last active August 14, 2018 02:14
Show Gist options
  • Save rpuglielli/e350d070e4ebcc14fc6a04ad3d2b995a to your computer and use it in GitHub Desktop.
Save rpuglielli/e350d070e4ebcc14fc6a04ad3d2b995a to your computer and use it in GitHub Desktop.
SQL to find duplicated rows
SELECT field, Count(*)
FROM table_name
GROUP BY field
HAVING Count(*) > 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment