Question 110
A data quality team needs the number of distinct CustomerIDs per market. What aggregation is appropriate?
Explanation
Correct Answer
Group by Market and count distinct CustomerID values. Distinct-count aggregation avoids counting repeat appearances of the same customer.
Incorrect Answers
Minimum selects the earliest date within each department. That matters for “file needs the oldest HireDate for each Department” rather than the condition “needs the number of distinct CustomerIDs per market”.
Group By summarizes packages for each carrier value. The boundary it addresses is “operations needs a count of packages by carrier”, while this case concerns “needs the number of distinct CustomerIDs per market”.
Average returns the arithmetic mean for each category group. The deciding difference is “A SKU table requires average UnitCost by ProductCategory” versus “needs the number of distinct CustomerIDs per market”.