|
you can do that by running a count on the (combination of) column(s) that should be unique --> the ones that you would create your unique index on.
like
SELECT COUNT(*), column1, column2 FROM yourtable GROUP BY column1, column2
all records with a count higher then 1 are duplicates. You can create a temporarely table of this, or use it as a subquery to get all info from the duplicated records out of the original table.
|