/ Published in: SQL
Find duplicate records regarding a certain field.
Expand |
Embed | Plain Text
SELECT email, COUNT(email) AS NumOccurrences FROM users GROUP BY email HAVING ( COUNT(email) > 1 )
You need to login to post a comment.
Find duplicate records regarding a certain field.
SELECT email, COUNT(email) AS NumOccurrences FROM users GROUP BY email HAVING ( COUNT(email) > 1 )
You need to login to post a comment.