
218 PUZZLE 54 POTENTIAL DUPLICATES
PUZZLE
54 POTENTIAL DUPLICATES
Ronny Weisz posted this problem he was having with an application in
DB2. The store has approximately 20,000 customers, and over time they
notice data problems due to typos, inaccurate data entry, separate
listings for different family members (in their context the family is really
a single customer), and so forth. Occasionally they try to clean up their
Customers table by preparing a report with potential duplications.
The definition of a potential duplicate is that the rows have the same
surname and match two of the five columns related to street address:
first_name, street_address ...