DataCareerHub
Explore learning
← Mistake ClinicFree companion · 15 minute suggested activity

The join that doubled revenue

Mistake Clinic · Inspect the reasoning before opening the diagnosis.

Learn → Try → ExplainReviewed 2026-10-15
01

The questionable claim

An order worth EUR100 has two item rows. After joining order totals to items, SUM(order_total) shows EUR200.

02

Investigate

Identify the unit of analysis, denominator, population or information boundary. What extra evidence would be needed? Write a corrected statement first.

Diagnosis and repair

Order totals are repeated at item grain. Aggregate line amounts or aggregate each side to the required order grain before joining. Reconcile unique order count and pre/post amounts. DISTINCT on a monetary amount can wrongly merge different orders with equal values.

04

Prevention

Add a test or review question that catches the error before publication. Save the original and corrected explanation so your reasoning is auditable.

Make the reasoning yours.

Try the activity before reading its reference. Keep your sources, commands and assumptions with your work. Companion activities are unsaved self-practice and do not award a certificate or change lesson progress.

Resume guidance and examples are for learning and preparation only. They do not guarantee interviews, a job offer or employment.

Public registration, payments and new paid enrolment remain disabled. These free resources do not grant access to protected course modules.

Learner dashboard ↗ · Ask a question ↗