Bonediggler1
Technical User
Hi
I am trying to isolate and then delete duplicate records from a large table. In this case every field in a record has to be the same as another record for it to be a duplicate.
I need to check whether the following logic is correct. It seems to be, but given the large number of records I am dealing with it is hard to validate...
Basically to identify duplicates (triplicates etc) I use the ROW_NUMBER() function and PARTITION BY every field in the table to generate a new ROWNUM field in a new query.
Using the generated ROWNUM field I can then delete every record with a value more than one.
Does this make sense?
Thank you!!
I am trying to isolate and then delete duplicate records from a large table. In this case every field in a record has to be the same as another record for it to be a duplicate.
I need to check whether the following logic is correct. It seems to be, but given the large number of records I am dealing with it is hard to validate...
Basically to identify duplicates (triplicates etc) I use the ROW_NUMBER() function and PARTITION BY every field in the table to generate a new ROWNUM field in a new query.
Using the generated ROWNUM field I can then delete every record with a value more than one.
Does this make sense?
Thank you!!