Composite keys and record matching
Match on several fields when no single column identifies a record.
How to approach it
Choose the smallest combination that reliably identifies one business record. A claim ID plus line number or an order ID plus item number is often more useful than a name. All selected key values must be nonblank.
Worked example
Claim C-10 has lines 1 and 2. Matching on claim ID alone creates an ambiguous group. Matching on claim ID and line number permits each line to be compared independently.
What to review
Run a duplicate audit before trusting a proposed key. If duplicates remain, inspect whether they represent legitimate repeated records, an incomplete key or an upstream extraction problem.
Limits and interpretation
Changing an identifier makes the record appear as only in A and only in B. This tool does not infer that two different keys refer to the same entity.