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

Preview

DA 1.23: Moving data between storage systems

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

60 minutes

The move that lost the dates

A club moves its sales from an old sheet to a new system. The import finishes. Every date has changed to the wrong month.

The old system wrote day first. The new one read month first. A move is not a copy. It needs a plan: take out, prepare, change to fit, and put in.

Key words

WordWhat it meansExample
ExtractTo take the data you need out of its source.Pull last year's sales
ExportTo send data out of a system as a file.Save as a CSV file
TransformTo change data so it fits what the new system expects.Day first to year first
ImportTo load data into a system from a file.Upload the CSV file
ETLExtract, transform, load: the three main steps of moving data.Out, change, in
CSVA plain text file where commas split each line into columns.bun,4,2
Redundant dataData you do not need to move, such as repeats.A test row
ComplianceFollowing the law and security rules.Keep personal data protected

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

By the end of this lesson

Note

I can plan and carry out a move of data from one storage system to another, in the right order.

Starter: what you already know

Have a go

Starter: what you already know

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.

Worked example: one line moves

StepThe line now
Extract02/03/2026,bun,£2.00 and a test row
PrepareThe test row is removed
Space checkFree 100 GB, need 40 GB, keep 20 GB spare: fine
ExportA CSV file with the line
Transform2026-03-02, bun, 200
ImportOne row in the new system

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

Try it: transform one line

Code: python
line = "02/03/2026,bun,£2.00"
parts = line.split(",")

date_parts = parts[0].split("/")
iso = date_parts[2] + "-" + date_parts[1] + "-" + date_parts[0]
money = parts[2].replace("£", "").split(".")
pence = int(money[0]) * 100 + int(money[1])
print(iso, parts[1], pence)

# Try it: change the line to a new date and price and press Run.

Check: the order matters

Have a go

Check: the order matters

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

4 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.