I have a big table. I am finding duplicates, this table has 10 columns(lets say A,B,C,D..etc). I am running below query to get duplicate record but its taking more than 1 hour. Query :
SELECT COUNT(*) FROM TABLE1 GROUP BY A,B,C,D,E HAVING COUNT(*) >1
Can someone suggest me faster way to get this done.