EX-13: Candidate Pair Blocking on Postcode & Date of Birth
Track: Entity Resolution & MDM • Difficulty: Intermediate • Mastery Points: 150 PTS
Business Problem Scenario
Global DynaDatum Bank has 12,000 retail CRM customer records in silver.crm_std and 11,600 core mainframe banking customer records in silver.cob_std. Calculating fuzzy string distance between every pair across both tables would require 12,000 × 11,600 = 139,200,000 Cartesian comparisons, overwhelming compute resources and failing batch SLAs. To make entity resolution feasible, you must implement candidate pair blocking—restricting candidate comparisons to record pairs that share identical high-confidence, low-cardinality demographic keys (postcode_std and dob).
Engineering Objective
Create the candidate pair blocking view silver.candidate_pairs matching silver.crm_std and silver.cob_std. • Concept for Learners: Blocking partitions data using shared demographic keys (postcode_std and dob) so that only plausible customer pairs are compared, pruning 99%+ of Cartesian comparisons before expensive fuzzy matching. • Expected Columns: a.crm_id, b.cust_no, a.full_name AS crm_name, b.full_name AS cob_name, a.email_std AS crm_email, b.email_std AS cob_email, a.phone_std AS crm_phone, b.phone_std AS cob_phone, a.postcode_std, a.dob • Acceptance Criteria: Join silver.crm_std a and silver.cob_std b on a.postcode_std = b.postcode_std AND a.dob = b.dob. Key Concepts: - Candidate Blocking: Partitioning strategy that reduces candidate pairs by 99%+ by requiring strict equality on blocking keys prior to fuzzy scoring.
Target Table: silver.crm_std a (crm_id, full_name, email_std, phone_std, dob, postcode_std), silver.cob_std b (cust_no, full_name, email_std, phone_std, dob, postcode_std)
Verification & Architecture Insights
Blocking partitions drastically reduce pairwise computational complexity from O(N × M) to small, deterministic buckets of plausible identity candidates.