P76Data CleaningIntermediateDiagnose14 min

Diagnose Duplicate Customer Rows After Data Cleaning

Diagnose unexpected duplicate customer rows by tracing keys, source grain, and merge behavior.

#diagnose#duplicates#data grain

Scenario

A cleaned customer table has 10,240 rows but only 9,880 unique customer_id values. Some IDs occur twice after an orders merge.

Problem statement

Identify the most likely failure, support it with compact evidence, and name the next validation check.

Your Task

  1. Compare row and unique-key counts.
  2. Inspect duplicate-key examples and source grain.
  3. Distinguish inconsistent keys, one-to-many data, and a merge error.

Evidence

customers_clean: 10,240 rows; 9,880 unique customer_id orders source: multiple rows per customer customer_id C1042 appears twice after merge

Related Concepts

Data grainMerge validationDuplicate keys

Ready to count this problem?

Mark it complete when you have reasoned through the solution in your own words.