Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DA 2.2: Standardising formats and cross-checking

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

45 minutes

Leeds, leeds and LEEDS

A report shows three towns: Leeds, leeds and LEEDS. The computer sees three different places.

Before you trust a result, make the data look the same. Then check the answer a second way.

Key words

WordWhat it meansExample
Standardisationmaking values follow one agreed format
Validationchecking a value is sensible and in the right format
Verificationchecking a result is correct, often a second way
Cross-checkingcomparing a result with another source or method
Formatthe way a value is written2026-04-03

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can standardise a format and cross-check a result.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Standardise before you compare

Standardisation means every value follows one format. Dates become year-month-day. Towns have one spelling and one case.

Equal values must look equal. If not, a join or a total treats them as different.

Try it: tidy the towns and dates

Code: duckdb
select upper(left(trim(branch), 1)) || lower(substr(trim(branch), 2)) as branch,
       strptime(sale_date, '%d/%m/%Y')::date as sale_date,
       pence
from branch_sales;

-- Try it: use upper(trim(branch)) to make capitals instead.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.