Checking query results

How a result is tested before it is used.

1What it covers

How a result is tested before it is used. The topic covers the comparison with a known total from a report or the ledger, the count of rows before and after each step, the test of extremes and of empty values, the review of a sample by hand, the second reader, and the note of what the query does not include. It starts with a result and ends with a figure that has been reconciled to a source.

2Why it matters

A query always returns something, whether or not it is right. A reconciliation to a known total is the quickest test. A second reader finds errors that the author no longer sees.

3Concepts, in reading order

SQL (Structured Query Language)SQL is the standard language for defining, querying and changing data held in relational databases, where data sits in tables of rows and columns.
ReconciliationReconciliation is the regular comparison of two sets of records that should agree, such as a firm's securities positions and the custodian's statement…
Data qualityData quality is the fitness of data for its intended use.

4The skill it belongs to

5Roles that use it

Updated 5 Nov 2026