SQL on the CPA ISC Exam: The Blueprint Asks You to Read a Query and Judge Whether Its Data Set Is Complete, Not to Write One
On this page

The CPA ISC Blueprint lists no task that asks you to write SQL. Its one representative task on SQL queries uses the verb "examine": read a standard query and decide whether the rows it returns are relevant and complete. That is the question an auditor asks of any population before testing it, and a candidate who has never written code can learn to answer it.
SQL fails quietly: a wrong join, a date filter that stops a day early or a total that skips blank amounts runs without an error. Every query below was run as written, and each is followed by what it returns and what it silently drops.
How ISC asks it: what the Blueprint says about SQL, and the skill level it sets
The task sits in ISC Area I, Information Systems and Data Management (35 to 45% of the section), Group B, Data management, a group with no numbered topics: "Examine a standard SQL query (common commands, clauses, operators, aggregate functions and string functions) to determine whether the retrieved data set is relevant and complete." Its skill level is Application. Beside it, also at Application: "Examine a relational database's structure to determine whether it applies data integrity rules, uses a data dictionary, and normalizes the data." The group's highest skill is Analysis, on integrating data sources and investigating process models.
| ISC in the 2026 Blueprint | What it says |
|---|---|
| Questions | 82 multiple choice and 6 task-based simulations |
| Score weighting | 60% multiple choice, 40% simulations |
| Skill allocation | Remembering and Understanding 55 to 65%, Application 20 to 30%, Analysis 10 to 20% |
Two reading rules matter. Tasks are representative, not exhaustive, so a question asking which clause would fix a query is within reach. And a parenthetical list without "e.g." is complete: those five kinds of query element are the whole list. No dialect is named, so learn standard ISO SQL, whose core the major databases share even where their function syntax differs. Among the tasks, SQL appears once more, as "SQL injections" among Area II's attack techniques, a security topic. The Blueprint effective January 2027, approved on 16 September 2026, keeps the query task word for word.
The keywords that carry the marks: SELECT, FROM, WHERE, GROUP BY, HAVING and ORDER BY
SELECT is the command that retrieves; INSERT, UPDATE and DELETE change data. The database does not process clauses in the order they are written: FROM first, then WHERE to filter rows, GROUP BY to form groups, HAVING to filter groups, the SELECT list, and ORDER BY last. WHERE removes rows before anything is totalled; HAVING removes whole groups after.
Every example uses the same two illustrative tables.
| customer_id | name |
|---|---|
| 101 | Alpha Trading |
| 102 | Beta Foods |
| 103 | Gamma Steel |
| 104 | Delta Labs |
| invoice_no | customer_id | invoice_date | amount |
|---|---|---|---|
| 5001 | 101 | 2025-12-05 | 12,000 |
| 5002 | 101 | 2025-12-19 | 3,500 |
| 5003 | 102 | 2025-12-22 | 8,000 |
| 5004 | 103 | 2025-12-31 | NULL |
| 5005 | 109 | 2025-12-31 | 4,200 |
| 5006 | 102 | 2025-12-28 | -1,500 |
SELECT customer_id, SUM(amount) AS total_billed
FROM invoices
WHERE invoice_date BETWEEN '2025-12-01' AND '2025-12-31'
GROUP BY customer_id
HAVING SUM(amount) > 5000
ORDER BY total_billed DESC;
The auditor's reading: two rows, customer 101 at 15,500 and customer 102 at 6,500 (8,000 less a 1,500 credit note). Customer 109 drops out at HAVING, under the threshold at 4,200. Customer 103 drops out too, but not for being small: its only invoice has no amount, so its total is NULL, and NULL compared with 5,000 is neither true nor false. A list of customers billed over 5,000 has lost one whose billing is unknown.
Operators do the comparing: = and <>, < and >, BETWEEN (inclusive at both ends), IN, LIKE (% for any run of characters, even an empty one, _ for exactly one), IS NULL, and AND, OR and NOT. AND binds before OR, so unbracketed conditions mixing them can keep rows the writer meant to exclude.
Joins: why an inner join drops the customers with no invoices
SELECT c.name, i.invoice_no, i.amount
FROM customers c
INNER JOIN invoices i ON i.customer_id = c.customer_id;
Five rows. Delta Labs is missing because it has no invoice, and invoice 5005 because its customer, 109, is not in the customer table. An inner join keeps matched pairs only, dropping unmatched records from both sides without a message. For a test of December billing, the dropped invoice is the most interesting row: a sale to a customer the master file has never heard of.
SELECT c.name, i.invoice_no, i.amount
FROM customers c
LEFT JOIN invoices i ON i.customer_id = c.customer_id;
A left join keeps every row of the first table and fills the gaps with NULL: six rows, Delta Labs included. Add WHERE i.amount > 0 and the result falls to three: Delta Labs and invoice 5004 go because NULL is not greater than zero, and the credit note because it is negative. A condition on the second table has cancelled the left join.
SELECT i.invoice_no, i.customer_id
FROM invoices i
LEFT JOIN customers c ON c.customer_id = i.customer_id
WHERE c.customer_id IS NULL;
Here IS NULL is deliberate: it keeps only invoices with no matching customer, returning 5005 alone. Searching for what does not match is how an auditor compares two files.
Aggregate and string functions, and the NULLs that change a total
SELECT COUNT(*) AS invoice_rows,
COUNT(amount) AS priced_rows,
SUM(amount) AS total,
AVG(amount) AS average
FROM invoices;
COUNT(*) counts rows: 6. COUNT(amount) counts rows where amount is not NULL: 5. SUM returns 26,200 and AVG 5,240, which is 26,200 divided by 5, not 6. COUNT(column), SUM, AVG, MIN and MAX all skip NULLs without an error, so the gap between the two counts is the first thing to check. NULL means unknown, not zero: WHERE amount = NULL returns no rows at all, while WHERE amount IS NULL finds invoice 5004.
| Function | What it returns | What to check |
|---|---|---|
| COUNT(*) | Every row | Includes NULL rows |
| COUNT(column) | Rows where the column is not NULL | Compare it with COUNT(*) |
| SUM, AVG, MIN, MAX | A result over non-NULL values | AVG divides by priced rows |
| UPPER, LOWER, TRIM | Text in one case, without outer spaces | Names keyed inconsistently |
| SUBSTRING | Part of a text | SUBSTRING('GL-4010-RYD' FROM 4 FOR 4) returns 4010 |
String functions matter for matching. Comparison can be sensitive to capitals and stray spaces, so a duplicate-vendor test compares UPPER(TRIM(name)), or one supplier keyed twice can pass as two.
Keys, data dictionaries and normalisation: the database questions tested beside the query
The second Application task asks whether a database enforces its own rules. A primary key identifies each row, so its values must be unique and never NULL. A foreign key requires any value entered to exist in another table, which is referential integrity (a NULL passes unless the column is also NOT NULL): had invoices.customer_id been declared a foreign key to customers, invoice 5005 could not have been saved. Column rules are the third layer: NOT NULL on amount would have rejected invoice 5004. Each orphan or blank a query finds is a rule the database was never told to enforce.
A data dictionary is the database's description of itself: every table and column with its meaning, type, permitted values and keys. It tells you whether invoice_date is the date of issue or of posting, which decides whether a cut-off filter on it is relevant.
Normalisation stores each fact once; repeat the customer's name on every invoice and a name changed on some rows leaves one customer under two names. First normal form means one value per field, second that every non-key field depends on the whole key, third that no non-key field depends on another. Warehouses repeat data on purpose: a star schema surrounds a fact table with dimension tables, and a snowflake schema normalises those dimensions further.
AUD approaches this from the other side: its Area III asks you to explain primary and foreign keys and normalisation, and to validate the query criteria used to obtain data.
Relevant and complete: reading a query the way an auditor reads a population
Relevant means the rows are the population the test needs: the right period, entity, account and status. Complete means none of them is missing. A query can fail either way, and the clause responsible can be read.
SELECT invoice_no, amount
FROM invoices
WHERE invoice_date >= '2025-12-01'
AND invoice_date < '2025-12-31';
Four rows, 22,000 in total. Both invoices dated 31 December are gone, because "earlier than 31 December" stops at the end of the 30th, and the last day of the period is where cut-off errors sit. Writing < '2026-01-01' brings them back, as does BETWEEN on a column holding dates without times.
| Clause | What it removes | The question to ask |
|---|---|---|
| INNER JOIN | Records unmatched on either side | Which invoices lack a customer? |
| WHERE on a date | Rows outside the range, the end date too under < | Is the last day included? |
| WHERE amount > 0 | Credit notes, zeros and NULLs | Did the test mean to exclude them? |
| WHERE on a LEFT JOIN's second table, other than IS NULL | The unmatched rows the join kept | Were they meant to stay? |
| HAVING | Whole groups, after totalling | Whose threshold is it? |
Then reconcile the extract's row count and total to a control total from outside the query, such as the general ledger. A ledger showing the same 6 invoices at more than 26,200 points straight at invoice 5004.
Practising SQL for ISC without becoming a programmer
Read before you run. For each practice query, write the processing order, list the rows you expect, then the rows a change to one clause would add or remove. The question is never whether the query runs, only whether its result is the population, so drill joins and NULLs first: they cause most of the silent losses above.
Where to practise this
Prepito's ISC course covers all three Blueprint areas with practice questions and simulations, and the free ISC practice questions need no sign-up. For the whole section, read the CPA ISC Study Guide; for the controls over the programs that write these tables, Change Management Controls for CPA ISC; and if your Discipline is undecided, Which CPA Discipline Should You Choose.
Sources: AICPA CPA Exam Blueprints, effective January 2026 and January 2027, with the summary of revisions; PostgreSQL documentation on SQL conformance (ISO/IEC 9075), SELECT and aggregate functions. The queries ran in PostgreSQL and follow the ISO standard except in writing dates as plain strings, where the standard writes DATE '2025-12-01'; the tables are illustrative. Blueprints are revised periodically: confirm the one for your testing date.
Try 5 questions on this material
Question 1 of 5
Prepito Co.'s regional data center is valued at $3,200,000. An assessment finds that 25% of the facility would be damaged if a flood occurred, and historical data indicate a flood of that severity occurs about once every 16 years. What is the annualized loss expectancy (ALE) for this risk?


