Technical Article

Find Duplicates

,

Returns the key fields of all duplicate rows in a table based upon any fields in the table.

SELECTDuplicateCount = COUNT(*),
keyField1, 
keyField2, 
keyFieldN
FROMTableWithDuplicates
GROUP BY keyField1,
keyField2,
keyField3,
keyFieldN
HAVINGCOUNT(*) >= 2

Rate

5 (2)

You rated this post out of 5. Change rating

Share

Share

Rate

5 (2)

You rated this post out of 5. Change rating