Skip to main content
Modern SQL, Federated Analytics & Literate Notebooks · Chapters 15–16

How to prove new reports match legacy SQL to the exact cent

Why finance teams push back on reporting moves, and how row-by-row parity checks, plain-English discrepancy notes, and clear sign-offs settle cutover debates.

Published 2026-12-05 · 6 min read

Illustration of classic ledger binders connected by a glowing teal archway bridge to crisp modern analytics tiles
Illustration of classic ledger binders connected by a glowing teal archway bridge to crisp modern analytics tilesModern SQL, Federated Analytics & Literate Notebooks · Chapters 15–16
Short version

How do you prove a newly built report matches legacy SQL to the exact cent before switching over?

Run the old SQL query alongside the new shared metric in read-only mode over the exact same date range, compare results row by row by record ID, review every dollar difference with plain-English notes, and record a formal sign-off before retiring the old report.

  • Grand totals can look identical while hiding two opposite row errors, so always compare record by record.
  • Write down intentional fixes (like leaving out test accounts the old script missed) so Finance and auditors can review them.
  • Track sign-off report by report until every department lead is comfortable switching.

Why great new reports still get rejected by Finance

You can spend three months cleaning up your reporting tables and still hear a controller say on day one: “Your monthly revenue shows $412,840, and our old report shows $413,190. Until you explain that $350 gap, we are staying on the old report.”

That controller is right to push back. Trust in numbers is earned cent by cent.

Why matching grand totals is not enough

Checking only the final sum can hide real mistakes. Suppose a new report accidentally leaves out one $500 invoice while accidentally counting a $500 void. The grand totals match to $0.00, yet two customer accounts are wrong.

A real parity check compares both grand totals and individual record IDs side by side:

Check layer What it compares What it catches
Total summary Total dollars, counts, and averages Broad filter, fiscal-year, or join differences
Row-by-row ID matching Every invoice, customer, or donor ID across both reports Offsetting errors, missing records, and accidental duplicates
Plain-English notes Short explanation of intentional fixes vs. bugs Shows auditors why 3 old rows were left out on purpose

Turning verified queries into shared team metrics

In Datellio SQL Studio, once a query passes a side-by-side check against your old report, you can promote that verified SQL with one click into a shared Datellio metric, audience list, or quality check, complete with a sign-off tracker for auditors and SMB finance leaders.

Related workspace & industry page

See how Datellio puts these practices to work directly on your own computer.

FAQ

Common questions from this chapter

Short answers for quick reference.

What is a legacy report parity check?

It runs your old SQL report next to a new shared metric in read-only mode and builds a side-by-side summary showing the match rate, exact dollar gap, and which specific IDs differed.

What if the new report is actually more accurate than the old SQL?

That happens all the time, such as when an old script accidentally included refunded invoices or double-counted a split payment. A record-by-record comparison highlights those exact rows so Finance can inspect and approve the fix.

Related reading

Early access & design partners

Get one set of signed-off numbers. Join early access.

Datellio Studio is in active development, with Windows desktop builds going to design partners first. Join the waitlist or tell us which systems you are trying to reconcile.

Runs on your own computer · No data warehouse required · Free early builds for design partners