Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

SQL Find Duplicates

DZone's Guide to

SQL Find Duplicates

· ·
Free Resource
// find duplicates in a table


SELECT email,
COUNT(email) AS NumOccurrences
FROM users
GROUP BY email
HAVING ( COUNT(email) > 1 )
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}