/ Published in: MySQL
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.
atma on 02/20/10
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.