Skip to content
Advertisement

Finding Duplicate Rows in a Table

I am trying to find out how many duplicate records I have in a table. I can use count, but I’m not sure how best to eliminate records where the count is only 1.

I can try to order by the count, but I am still not eliminating those with a count of one.

Advertisement

Answer

you can use having clause as having Count(*) > 1 after group by like this :

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement