I have to delete duplicates records which having same date and same ID with below conditions and then add unique key on date and ID
SELECT SDATE , ID , COUNT(1) AS CNT FROM OT_DTL GROUP BY SDATE , ID HAVING COUNT(1)>1
I have tried with many different ways and google but it gives error for delete the records
Kindly suggest on this if any one knows or available asap