/ Published in: SQL
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.
traeregan on 09/26/10
mysql select sql duplicates Dupes
1 person have marked this snippet as a favorite
SELECT email, COUNT(email) AS NumOccurrences FROM users GROUP BY email HAVING ( COUNT(email) > 1 )
You need to login to post a comment.