Skip to content

Instantly share code, notes, and snippets.

@vladimir-e
Created March 19, 2013 21:43
Show Gist options
  • Save vladimir-e/5200409 to your computer and use it in GitHub Desktop.
Save vladimir-e/5200409 to your computer and use it in GitHub Desktop.
SQL query to find duplicates in database (http://stackoverflow.com/questions/4440689/sql-how-to-find-duplicates-rows) #sql
SELECT first_name, last_name
FROM users
GROUP BY first_name, last_name
HAVING COUNT(*) > 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment