Find duplicate rows in a table


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT email,
  2. COUNT(email) AS NumOccurrences
  3. FROM users
  4. GROUP BY email
  5. HAVING ( COUNT(email) > 1 )

URL: http://www.petefreitag.com/item/169.cfm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.