Skip to content

Audit data requests: databases, data types and cleaning

Before an auditor can study data, the auditor has to ask for the right data and clean it. AUD tests relational database terms, measurement scales, the data request and cleaning steps. A worked example cleans a sales extract and agrees it to the ledger.

Last checked .

How a relational database is built

The definitions below come from (OpenStax Introduction to Computer Science, 8.3). The customer table example comes from (OpenStax Principles of Data Science, 2.4). A relational database keeps data in tables of rows and columns. Each row is a record and each column is an attribute. The Blueprint task pairs fields with attributes (AICPA Blueprint aud-iii-a-1-01).

  • Primary key: gives a unique ID for each record in a table, such as an invoice number.
  • Foreign key: links two tables. When one row on one side links to many rows on the other, the "one" side's primary key is added to the "many" side. A customer ID in the invoice table is an example.
  • Normalization: shaping tables to cut repeated data and protect data integrity. For example, a customer table with repeated data can be split into customer and order tables.

Measurement scales

Data falls into four levels of measurement, from lowest to highest (OpenStax Introductory Business Statistics 2e, 1.3):

ScaleWhat it allowsAudit example
NominalCategories or labels, not orderedStore code, product category
OrdinalAn order, but differences cannot be measuredCredit rating of high, medium or low
IntervalDifferences, but zero is not a minimumTemperature in degrees Fahrenheit
RatioDifferences and ratios, with a minimum valueInvoice amount, units shipped

Data from counting is discrete, such as the number of shipments. Data that can include fractions or decimals is continuous. It often comes from measuring weight or time (OpenStax Introductory Statistics 2e, 1.2).

Writing the data request

The Blueprint task asks you to pick the fields, format and sources of data for a data request (AICPA Blueprint aud-iii-a-1-03). The request serves the planned procedures. The worked example below shows one.

Detail matters. Monthly amounts may work better than annual ones. Comparisons by location usually work better than companywide ones (AU-C 520.A23).

Timing matters too. Some data is there only at certain times, which may affect when procedures are done (AU-C 500.A48). If the entity deletes data after a set time, the auditor may ask it to keep the data. Or the auditor may do the work while the data is there (AU-C 500.A49).

Preparing and cleaning the data

The Blueprint task asks you to pick ways to transform data, such as preparing, cleaning and scrubbing it (AICPA Blueprint aud-iii-a-1-04). Cleaning data usually takes these steps (OpenStax Principles of Data Science, 2.4):

  • Integration: merge data from several sources into one dataset.
  • Cleaning: remove duplicates, handle missing values and fix formatting errors.
  • Transformation: convert data to a usable form, such as one date format for every record.
  • Validation: check data against rules to flag impossible values.

Missing data can be removed, but that can lose key facts. Another option is to fill the gaps with estimates. Outliers can be studied as a separate group rather than deleted. For entity data, the auditor gets evidence that it is accurate and complete, as necessary (AU-C 500.08).

Worked example

The auditor of Ridgeway Foods Inc. requests the full sales file for the year. The request asks for one record per invoice. It lists five fields: invoice number, customer ID, invoice date, store code and amount. Invoice number is the primary key. Customer ID is a foreign key to the customer table.

The file arrives with two date formats, so the auditor converts all dates to one format. A test on the primary key finds invoice numbers that appear twice. The repeats are exact copies from a double export.

ItemAmount
Records received12,480
Total of amounts received$4,862,000
Repeated records from the double export230
Amount on the repeated records$91,000
Sales per general ledger$4,771,000
Working
Records after removing repeats12,250 units
Total after removing repeats$4,771,000
Raw file total above the ledger$91,000
Clean total less the ledger$0

The traps

Trap Drill

Skipping the ledger check after cleaning

Ridgeway's raw file was $91,000 above the ledger. Removing 230 repeats left 12,250 records that agree to the ledger exactly. For entity data, the auditor gets evidence that it is accurate and complete, as necessary (AU-C 500.08).

Trap Drill

Mixing up the keys

The primary key gives a unique ID for each record. A foreign key is the primary key of the "one" side, added to the "many" side (OpenStax Introduction to Computer Science, 8.3).

Trap Drill

Calling Fahrenheit a ratio scale

In Fahrenheit, 0 is not the lowest temperature, so it is an interval scale. Ratio data has a minimum value, so ratios can be calculated (OpenStax Introductory Business Statistics 2e, 1.3).

Trap Drill

Asking for summary data

Offsetting factors can hide material misstatements. Splitting the data into finer detail helps reduce that risk (AU-C 520.A23).

Check yourself

One questionAudit data requests: databases, data types and cleaning

A retailer's point-of-sale system deletes transaction detail a few weeks after each month ends. The auditor plans an analytic of December sales by store, but fieldwork starts after the December detail will be deleted. What should the auditor do?

Sources

  1. OpenStax Introduction to Computer Science, 8.3. OpenStax, relational databases: records, attributes, keys and normalization
  2. OpenStax Introductory Business Statistics 2e, 1.3. OpenStax, levels of measurement
  3. OpenStax Introductory Statistics 2e, 1.2. OpenStax, discrete and continuous data
  4. OpenStax Principles of Data Science, 2.4. OpenStax, data cleaning and preprocessing
  5. AU-C 520.A23. AU-C 520, level of disaggregation
  6. AU-C 500.A48. AU-C 500, information available only at certain times
  7. AU-C 500.A49. AU-C 500, data retention policies
  8. AU-C 500.08. AU-C 500, accuracy and completeness of entity data
  9. AU-C 580.04. AU-C 580, written representations do not stand alone
  10. AICPA Blueprint aud-iii-a-1-01, aud-iii-a-1-03, aud-iii-a-1-04. AICPA Uniform CPA Examination Blueprints, AUD tasks aud-iii-a-1-01, aud-iii-a-1-03, aud-iii-a-1-04
Report an error on this page
What’s wrong?

Find your weakest AUD tasks in 15 minutes.

Take the free diagnostic15 minutes. No account.