JasonCannon
IS-IT--Management
I need to mark records in one table that are considered duplicates of another table, but the five fields that determine the duplicate are too large to put into one index. I get "Invalid Key Length" when I try.
I need to mark the field "dupe" in table one with "Y" for the duplicates based on those fields.
Usually I would create the index and then run through a DO WHILE loop, but this is a first for me.
Suggestions?
"..if you give a man a fish he is hungry again in an hour. If you teach him to catch a fish you do him a good turn."
-- Anne Isabella Thackeray Ritchie.
Code:
INDEX ON ALLTRIM(ALLTRIM(UPPER(lstnm))+ALLTRIM(UPPER(lstgn))+ALLTRIM(UPPER(dirtx))+ALLTRIM(UPPER(locnm))+ALLTRIM(UPPER(state))) TAG listing
I need to mark the field "dupe" in table one with "Y" for the duplicates based on those fields.
Usually I would create the index and then run through a DO WHILE loop, but this is a first for me.
Suggestions?
"..if you give a man a fish he is hungry again in an hour. If you teach him to catch a fish you do him a good turn."
-- Anne Isabella Thackeray Ritchie.