266: where entity_name = 'CONTACTS'
267: and attribute_name = 'CONTACT_NAME'
268: and attribute_id in (
269: select attribute_id
270: from hz_match_rule_primary b
271: where match_rule_id = 51
272: union
273: select attribute_id
274: from hz_match_rule_secondary b
487: where entity_name = 'CONTACTS'
488: and attribute_name = 'CONTACT_NAME'
489: and attribute_id in (
490: select attribute_id
491: from hz_match_rule_primary b
492: where match_rule_id = 51
493: union
494: select attribute_id
495: from hz_match_rule_secondary b