Run the failure
Use the red CTA to create the analytical problem intentionally.
Run a payment-attempt join that quietly multiplies order value, then diagnose it with control queries.
Find why GMV moves from $110 to $135 although the business only has three orders.
Use the red CTA to create the analytical problem intentionally.
Before validating, decide what you expect row counts or metrics to do.
Use the green CTA to reveal the checks that catch the failure.
Say what broke in plain business language, not only SQL language.
Find why GMV moves from $110 to $135 although the business only has three orders.
1001$251002$401003$451001 · failed$251001 · paid$25extra row1002 · paid$401003 · paid$45Control query catches it: row count changed while distinct orders did not. Pre-aggregate payment attempts to one row per order.
A query can run and still be analytically wrong.
COUNT(*) vs COUNT(DISTINCT key) exposes join inflation.
Pre-aggregate many-side tables to the intended grain.