|
There are duplicate records Find duplicate records based on ExtNum. But check that only for records where findduplicate= 'Y' EDIT (changed in sample to bit value) So the result should return FYI:-
Jan 08 '11 at 05:31 AM
hari
Jan 08 '11 at 05:38 AM
hari
(comments are locked)
|
I would have tested this for you too, if you had posted your table def and insert statements to specify your test case.
(comments are locked)
|
|
I created the test data (and have appended it to your question The exec plan is nicer here, but it just finds all rows where there is a matching extnum with findduplicate = 1 - whether there are duplicates or not... +1 for recreating the test data though :)
Jan 07 '11 at 06:58 AM
Matt Whitfield ♦♦
Combine the answers to only show dupe rows and still provide a nice mechanism for deleting them? :)
Jan 07 '11 at 11:39 AM
KenJ
(comments are locked)
|

