Skip to content

Instantly share code, notes, and snippets.

@ggendre
Created June 29, 2011 14:42
Show Gist options
  • Save ggendre/1053969 to your computer and use it in GitHub Desktop.
Save ggendre/1053969 to your computer and use it in GitHub Desktop.
SQL find duplicates 2/2
SELECT user.*
FROM user, (SELECT * FROM user) AS doublons
WHERE user.nom = doublons.nom
AND user.prenom = doublons.prenom
AND user.id!=doublons.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment