Hi,
i have a very large table (over 200 million rows) that i need to delete duplicate records from. Here a sample of the table:
ID CustNum QuestionID Response SystemID
--- ------ ---------- -------- --------
1 100 5 Yes 87
2 100 5 Yes 87
3 100 6 Yes 89
4 200 3 No 87
5 200 3 No 87
From the above sample, i would need to delete record ID's 2 and 5, since these are duplicate records of ID's 1 and 4. Since this is a very large table, anything i try to do with it takes forever and eats up transaction log space.
Does anyone have an idea on the most efficient way to find and remove these duplicate records?
Thanks
scott
i have a very large table (over 200 million rows) that i need to delete duplicate records from. Here a sample of the table:
ID CustNum QuestionID Response SystemID
--- ------ ---------- -------- --------
1 100 5 Yes 87
2 100 5 Yes 87
3 100 6 Yes 89
4 200 3 No 87
5 200 3 No 87
From the above sample, i would need to delete record ID's 2 and 5, since these are duplicate records of ID's 1 and 4. Since this is a very large table, anything i try to do with it takes forever and eats up transaction log space.
Does anyone have an idea on the most efficient way to find and remove these duplicate records?
Thanks
scott