Find duplicate records in table


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



Copy this code and paste it in your HTML
  1. SELECT COUNT(TABLE_ID), TABLE_ID
  2. FROM TABLE
  3. GROUP BY TABLE_ID
  4. HAVING COUNT(TABLE_ID)>1
  5. ORDER BY TABLE_ID

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.