Finding Duplicates with SQL
-- thisΒ isΒ awesomeΒ testimg
SELECT email, COUNT(email) AS NumOccurrences FROM users GROUP BY email HAVING ( COUNT(email) > 1 )-- thisΒ isΒ awesomeΒ testimg
SELECT email, COUNT(email) AS NumOccurrences FROM users GROUP BY email HAVING ( COUNT(email) > 1 )