Posted By

lance on 08/05/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Find duplicate records in table


 / Published in: SQL
 

  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  

You need to login to post a comment.