GUIDE

SQL trace

Definition, how it is used in the close, and what a reviewer checks.

Short answer

The exact SQL query that produced a figure, saved with the figure so anyone can rerun it against the same data and get the same result.

In practice

Query Q07 returns the October unmatched bank lines: 2 rows, -$1,337.40. The workbook's Trace tab stores the query text, row count and result.

What a reviewer checks

Rerunning the query reproduces the figure exactly.

Why it matters

The SQL trace is the evidence that a number can be rerun, rather than only reviewed.

What goes wrong

A query that is shown but not saved, or saved without its parameters. The reviewer cannot rerun it on the same data.

Related terms

Part of AI in Finance. See how Yoraito runs the close.

See your close with the SQL behind every number.

A 30-minute call with your ERP, entity count and close calendar in front of us.