Customers Missing From the Activity Report

SQL · data quality · Beginner · about 15 minutes

Impact

Customer success reports that the order-activity report lists fewer customers than the CRM after a query refactor.

Symptoms

Evidence

Row counts

datasetrows
Customer4
Orders5
order-activity report (this run)3
order-activity report (previous run)4

Report output, this run

customer_idcustomer_namecityorder_count
1KrishnaHyderabad2
2SudheerBangalore1
4RahulHyderabad2

Report job log

report_order_activity  deploy: query refactor (join simplified)
report_order_activity  rows=3  previous_rows=4  status=SUCCESS

Investigation task

Produce the order-activity report for every customer, showing 0 for customers with no orders: customer_id, customer_name, city, order_count, ordered by customer_id.

The fix is written and graded in the regular challenge editor. The postmortem unlocks once the incident is resolved.

All production incidents