Hi all,
I'm wanting to insert several rows into T_POTENTIAL_DUPS based on some customized criteria that the procedure AP_IDENTIFY_DUPES doesn’t pick up.
What is the best way to generate the 'criteria' column? On custom merges, is usually looks like this: !@#$CUSTOM7969 and I can’t find where and how this is generated.
Last time in inserted a large number of rows into a column using a loop I didn’t know about T_NEXT_ID and so temporarily ‘broke’ the table. I want to check this time!
Thanks for any advice,
Tash
Unknown said: What is the best way to generate the 'criteria' column?
What is the best way to generate the 'criteria' column?
I usually generate it based on the type of potential dupe it is, e.g. for potential dupes with street + phone matches, I use
left('custom_' + left(x.street1,5) + left(x.postal_code,5),100) "criterion",
For lname + last-4-CC digits:
'custom_' + c.lname + '_' + convert(varchar,c.act_no_four) "criterion",
Not sure if it helps, but Washington National Opera shared a report on TASK (#322) called "WNO Merge/Unmerge Suite" which includes a local version of AP_IDENTIFY_DUPES (they added email).It might be a good reference for what you are doing.
Cheers!