SELECT email, COUNT(email) AS NumOccurrences FROM users GROUP BY email HAVING ( COUNT(email) > 1 )
Tuesday, June 8, 2010
Find duplicate records in MySQL
Subscribe to:
Post Comments (Atom)
SELECT email, COUNT(email) AS NumOccurrences FROM users GROUP BY email HAVING ( COUNT(email) > 1 )
No comments:
Post a Comment