Skip to main content

Data Management

Almost every audit procedure and management decision now starts with a data set: a trial balance exported from the ledger, a list of journal entries pulled with a query, or sales figures combined from three regional systems. If the extraction misses records, or the query filters out the wrong ones, every conclusion built on that data inherits the error. That is why the ISC exam asks CPAs to understand how data is extracted, stored, structured, queried, and combined.

This chapter follows data through its life: how it is extracted, where it is stored, how databases are structured, how the data life cycle is controlled, how SQL queries retrieve it, and how data from different sources is integrated. It finishes with business process models. The application tasks here are practical: you may be shown a database design or a SQL query and asked whether the result is reliable.


Data Extraction Methods and Techniques​

Data extraction is retrieving data from one or more sources for analysis, reporting, or loading into another system. CPAs meet it in audit data analytics, financial reporting, and system migrations.

MethodDescriptionExample
Manual exportA user exports data through the application's reporting or export featuresExporting a trial balance to a spreadsheet
Query-based extractionA query, usually in SQL, retrieves specific records from a databasePulling all journal entries over $100,000 from the general ledger
API-based extractionA program requests data through an application programming interface (API)Pulling transactions from a SaaS application through its API
ETL (extract, transform, load)An automated process extracts data from source systems, transforms it into a consistent format, and loads it into a target such as a data warehouseA nightly job that loads sales from three regional systems into a central warehouse

ETL is worth knowing step by step. Extract pulls the data from the sources. Transform cleans, validates, standardizes, and deduplicates it. Load writes it to the target. A weakness at any step, such as a transform step that never checks record counts against the source, makes the loaded data unreliable.


Data Storage Types​

Organizations store data differently depending on what they need to do with it:

Storage TypeDescriptionTypical Use
Data warehouseA central repository of structured, integrated data from many sources, organized for querying and reportingEnterprise-wide reporting and analytics on historical data
Data lakeA large repository that holds raw data in its native format (structured, semi-structured, or unstructured) until it is neededStoring large, varied data for exploration and machine learning
Data martA subset of a warehouse focused on one function or departmentFaster, simpler reporting for finance, sales, or HR

Example: Polar Inc. consolidates data from its ERP system, its CRM system, and external market feeds in a data warehouse. The finance team works from a finance data mart that holds only the data it needs, so its queries run faster than they would against the whole warehouse.

The key contrast is when structure is imposed. A warehouse applies structure before data is loaded (cleaned, consistent, ready for reliable reporting). A lake stores data first and applies structure only when someone reads it (flexible, but less controlled).


Database Schemas​

A database schema is the logical design of a database: which tables exist and how they relate. Data warehouses commonly use one of two designs, both built around a fact table that holds the measurements (sales amounts, quantities) and dimension tables that describe them (date, product, customer, store).

In a star schema, each dimension is a single table joined directly to the fact table, so the diagram looks like a star:

In a snowflake schema, the dimension tables are themselves normalized into sub-tables. The product dimension, for example, might link to a separate category table instead of repeating the category name on every product row.

FeatureStar SchemaSnowflake Schema
Dimension tablesDenormalized (some data repeated)Normalized into sub-tables
StructureSimpler, fewer tablesMore tables and joins
Query speedFaster (fewer joins)Slower (more joins)
Storage and redundancyMore redundancyLess redundancy, more efficient storage

The Data Life Cycle​

The blueprint defines the data life cycle as the span of the use of information, from creation, through active use and storage, to final disposition. Each stage needs its own controls:

StageWhat HappensKey Controls
Creation or collectionData is generated internally or collected from outside sourcesInput validation, authorization, data quality checks
StorageData is kept in databases, warehouses, or other repositoriesAccess controls, encryption, backup and recovery
Active useData is accessed, processed, analyzed, and sharedAccess controls, processing integrity controls, audit trails, encryption in transit
ArchivalData no longer in active use but still required is moved to long-term storageRetention policies, access controls, retrieval procedures
DispositionData no longer needed is destroyedSecure deletion or destruction, documentation of destruction, adherence to retention schedules

Disposition is the stage most often neglected. Deleting a file usually removes only the pointer to it, so the data can often be recovered until it is overwritten or the media is destroyed. The Confidentiality and Privacy chapter covers secure destruction methods.


Relational Database Structure​

A relational database stores data in tables (also called relations). Each table has rows (records) and columns (fields), and tables are linked through shared key values. The blueprint asks you to examine a database to see whether it applies integrity rules, uses a data dictionary, and normalizes its data.

Data Integrity Rules​

Integrity TypeRuleExample
Entity integrityEvery table has a primary key, and no primary key value may be null or duplicatedEvery row in the Customers table has a unique, non-null CustomerID
Referential integrityEvery foreign key value must match a primary key value in the related table (or be null, if allowed)Every CustomerID in the Orders table must exist in the Customers table
Domain integrityValues in a column must fit the column's data type, format, and allowed valuesAn InvoiceDate column holds only valid dates; a State column holds only valid two-letter codes

Referential integrity is the one that most often matters in an audit. Without it, an order can point to a customer who does not exist, and a query that joins the two tables may silently drop that order.

Data Dictionary​

A data dictionary is a central record of the metadata about a database: the tables and what they hold, each column's name, data type, and constraints, the primary and foreign key relationships, valid values and business rules, and who owns each data element. For an auditor it is the map of the database: it shows what each field means, which is essential before writing or reviewing a query.

Normalization​

Normalization organizes a database to reduce redundancy and protect integrity, by splitting tables so each fact is stored in one place:

Normal FormRuleWhat It Eliminates
First normal form (1NF)Each column holds a single (atomic) value; no repeating groupsRepeating groups
Second normal form (2NF)1NF, and every non-key column depends on the whole primary keyPartial dependencies
Third normal form (3NF)2NF, and every non-key column depends only on the primary key, not on another non-key columnTransitive dependencies

Example: Bear Co.'s Employees table has the columns EmployeeID, EmployeeName, DepartmentID, and DepartmentName. DepartmentName depends on DepartmentID, not on EmployeeID, so the table is not in 3NF. If the Marketing department is renamed, every Marketing employee's row must be updated, and missing one leaves the data inconsistent. Moving DepartmentName to a separate Departments table, linked by DepartmentID, fixes the problem.


Structured Query Language (SQL)​

Structured Query Language (SQL) is the standard language for working with relational databases. The blueprint asks you to examine a standard query (its commands, clauses, operators, aggregate functions, and string functions) and decide whether the data it retrieves is relevant and complete. You will read SQL on the exam, not write it from scratch.

Commands​

CommandPurposeExample
SELECTRetrieves dataSELECT CustomerName, Balance FROM Customers
INSERTAdds rowsINSERT INTO Customers (CustomerID, CustomerName) VALUES (101, 'Bear Co.')
UPDATEChanges existing rowsUPDATE Customers SET Balance = 15000 WHERE CustomerID = 101
DELETERemoves rowsDELETE FROM Customers WHERE CustomerID = 101

Clauses​

ClausePurposeExample
FROMNames the table or tables to readFROM Customers
WHEREKeeps only rows that meet a conditionWHERE Balance > 10000
JOIN ... ONCombines rows from two tables on a related columnJOIN Orders ON Customers.CustomerID = Orders.CustomerID
GROUP BYGroups rows that share a value so aggregates can be calculated per groupGROUP BY DepartmentID
HAVINGKeeps only groups that meet a condition (applied after grouping)HAVING SUM(Amount) > 50000
ORDER BYSorts the resultsORDER BY Balance DESC

Two joins matter most. An INNER JOIN (or plain JOIN) returns only rows that have a match in both tables. A LEFT JOIN returns every row from the first (left) table, with blanks (nulls) where the second table has no match.

Operators​

OperatorPurposeExample
=, <>, >, <, >=, <=Compare valuesWHERE Status <> 'Closed'
AND, OR, NOTCombine or negate conditionsWHERE Status = 'Active' AND Balance > 0
INMatches any value in a listWHERE State IN ('IL', 'NY', 'CA')
BETWEENMatches a range, including both endpointsWHERE Amount BETWEEN 1000 AND 5000
LIKEMatches a pattern; % stands for any characters, _ for one characterWHERE CustomerName LIKE 'Bear%'
IS NULLFinds missing valuesWHERE ApprovalDate IS NULL

Aggregate and String Functions​

FunctionPurposeExample
COUNT()Counts rowsSELECT COUNT(*) FROM Transactions
SUM()Adds a numeric columnSELECT SUM(Amount) FROM Transactions
AVG()Averages a numeric columnSELECT AVG(Amount) FROM Transactions
MAX() / MIN()Returns the largest or smallest valueSELECT MAX(Amount) FROM Transactions
UPPER() / LOWER()Converts text to upper or lower caseSELECT UPPER(CustomerName) FROM Customers
TRIM()Removes leading and trailing spacesSELECT TRIM(CustomerName) FROM Customers
SUBSTRING()Extracts part of a stringSELECT SUBSTRING(AccountCode, 1, 3) FROM Accounts
CONCAT()Joins strings togetherSELECT CONCAT(FirstName, ' ', LastName) FROM Employees
LENGTH() / LEN()Returns the number of charactersSELECT LENGTH(CustomerName) FROM Customers

Here is how the pieces fit together. This query lists vendors paid more than $100,000 in 2025:

SELECT VendorID, COUNT(*) AS InvoiceCount, SUM(Amount) AS TotalPaid
FROM Invoices
WHERE PaymentDate >= '2025-01-01' AND PaymentDate < '2026-01-01'
GROUP BY VendorID
HAVING SUM(Amount) > 100000
ORDER BY TotalPaid DESC

WHERE filters individual invoices before grouping, GROUP BY collects the remaining invoices by vendor, HAVING filters the vendor totals after grouping, and ORDER BY lists the largest first.

Examining a Query for Relevance and Completeness​

When a question shows you a query, check three things:

  • Relevance. Does the query select the right columns from the right tables, and does its WHERE clause define the population the procedure needs?
  • Completeness. Could a condition exclude records that belong in the population? Could an INNER JOIN drop records with no match in the other table? Does a date range capture the whole period?
  • Accuracy of summaries. Are the aggregate functions the right ones, and does GROUP BY group at the right level?

Example: An auditor at Bear Co. needs every 2025 journal entry line posted to revenue accounts. The proposed query is:

SELECT JournalID, PostDate, AccountCode, Amount
FROM JournalEntries
WHERE AccountCode LIKE '4%'
AND PostDate BETWEEN '2025-01-01' AND '2025-12-31'
AND Amount > 0

Suppose Bear Co.'s system stores debits as positive amounts and credits as negative amounts. Revenue is recorded with credits, so Amount > 0 keeps only the debits to revenue (returns, reversals, and corrections) and drops the entries that record revenue itself. The data set is badly incomplete, and the condition should be removed. Two more checks are worth making. LIKE '4%' is relevant only if every revenue account, and nothing but revenue accounts, begins with 4, which the chart of accounts will confirm. And if PostDate stores a time as well as a date, BETWEEN ... '2025-12-31' stops at midnight at the start of December 31 and misses that day's postings; PostDate < '2026-01-01' avoids the problem.


Data Integration​

Data integration combines data from different sources into one consistent view for analysis and decisions. The blueprint asks you to integrate data from different sources to support financial and operational analysis. The work is mostly about resolving differences:

ChallengeDescription
Format differencesThe same data stored differently, such as dates as MM/DD/YYYY in one system and YYYY-MM-DD in another, or amounts in different currencies
Duplicate recordsThe same customer or vendor in several systems under different IDs or name spellings
Data qualityMissing values, errors, and out-of-date records
TimingSources updated on different schedules, so their figures do not agree at a given moment
MeaningThe same term defined differently, such as "revenue" in the sales system versus the general ledger

Integration can be done by ETL into a central repository (the most common approach), by data virtualization (leaving the data in place and presenting a combined view), by API integration (systems exchanging data in real time), or by manual consolidation in spreadsheets, which carries the highest risk of error. Whatever the method, reconcile the integrated result back to the sources, for example by comparing record counts and control totals.


Business Process Models​

A business process model is a diagram of the steps, decisions, data flows, and people in a process. The blueprint asks you to investigate one and identify improvements.

Model TypeWhat It ShowsTypical Use
FlowchartThe sequence of steps, decision points, and document flowsDocumenting transaction processing and control points
Data flow diagram (DFD)How data moves among sources, processes, data stores, and destinationsUnderstanding inputs, outputs, and transformations
BPMN diagramA process in Business Process Model and Notation, a standard notation of events, activities, gateways, and flowsDetailed modeling in a widely shared standard

When reading a model, look for redundant steps that add no value, manual steps that could be automated, missing controls where an approval, validation, or reconciliation should occur, bottlenecks where work queues up, and unnecessary handoffs between people or systems, each of which adds delay and a chance for error.

Example: Illini Entertainment's accounts payable model shows a clerk typing each vendor invoice into a spreadsheet, and a second clerk re-entering it from the spreadsheet into the ERP system. The double entry adds cost and error without adding control. Entering invoices directly in the ERP system, or capturing them with automated invoice processing, removes the redundant step.


Summary​

TopicKey Takeaway
Data extractionManual export, queries, APIs, and ETL; ETL transforms and validates data before loading it
Storage typesWarehouses hold structured, integrated data; lakes hold raw data; marts are departmental subsets
SchemasStar schemas are denormalized and fast; snowflake schemas are normalized and use less storage
Data life cycleCreation, storage, use, archival, and disposition, each with its own controls
Relational databasesEntity, referential, and domain integrity; a data dictionary; normalization to 3NF
SQLRead queries for relevance and completeness; watch WHERE conditions, join types, and date ranges
Data integrationResolve format, duplicate, quality, timing, and meaning differences, then reconcile to sources
Business process modelsFlowcharts, DFDs, and BPMN diagrams; look for redundancy, missing controls, and bottlenecks

Practice Questions​

  1. Bear Co. loads its data warehouse nightly from its ERP system through an ETL process. The finance team finds the same customer listed twice under slightly different names ("Bear Co." and "Bear Company"). At which ETL step should this be fixed?

  2. An auditor reviews this query, which Polar Inc. uses to list large unpaid invoices:

    SELECT InvoiceID, VendorName, Amount
    FROM Invoices
    INNER JOIN Vendors ON Invoices.VendorID = Vendors.VendorID
    WHERE Amount > 50000
    AND PaymentDate IS NULL

    Some invoices carry a VendorID that was deleted from the Vendors table. Will those invoices appear in the results? What does their existence say about the database?

  3. Bear Co. is considering a data lake alongside its data warehouse. What is the main difference between the two, and when is each more appropriate?

Answers
  1. The Transform step. Transformation is where data is cleaned, standardized, and deduplicated, including matching records that refer to the same customer under different spellings.

  2. No. An INNER JOIN returns only invoices with a matching vendor, so invoices whose VendorID no longer exists in the Vendors table are silently dropped, and the list of large unpaid invoices is incomplete. Using a LEFT JOIN would keep them (with a blank vendor name). Their existence also shows that the database is not enforcing referential integrity: a vendor was deleted while invoices still referred to it.

  3. A data warehouse holds structured data that has been cleaned and integrated before loading, which suits consistent, reliable financial reporting. A data lake holds raw data of any type in its native format and imposes structure only when the data is read, which suits storing large, varied data for exploratory analysis or machine learning.