Posted By

marvin9000 on 03/21/11


Tagged

sql


Versions (?)

Find SQL duplicates


 / Published in: SQL
 

Find duplicate records regarding a certain field.

  1. SELECT email,
  2. COUNT(email) AS NumOccurrences
  3. FROM users
  4. GROUP BY email
  5. HAVING ( COUNT(email) > 1 )

Report this snippet  

You need to login to post a comment.