Finding Duplicates with SQL

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

πŸ“‡ Additional Metadata

  • πŸ—‚ Type:: snippet
  • 🏷️ Tags:: T-SQL
  • πŸ“‘ Status:: #status/🌲