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

Preview

AC 3.10: Choosing a data model for analysis

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

55 minutes

Where does the notebook live?

A shop group tracks products, shops and the customers who buy them. One product is stocked in one shop. But one customer may buy in three shops, and one shop has many customers.

How you link these things changes how fast you can answer a question. There are three common ways to organise the links.

Key words

WordWhat it meansExample
Data modelA way of organising data and the links between items.Relational
Hierarchical modelItems in a tree, each with one parent.Folders
Network modelItems linked in any direction, so an item can have several parents.Customers linked to many shops
Relational modelData in tables, linked by shared key values.Products and shops tables
KeyA value that identifies a row.S1
EfficiencyHow little time and space a job uses.A fast lookup
ComplexityHow hard something is to build and understand.Many linked tables
QueryA question asked of stored data.Which shop sells most notebooks?

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

By the end of this lesson

Note

I can describe three ways of organising linked data and say when each is best for analysis.

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.

Three data models

A data model says how data and its links are organised.

The hierarchical model is a tree. Each item has one parent. Folders work this way.

The network model allows any item to link to any other, so an item can have several parents.

The relational model keeps data in tables. A key in one table points to a row in another.

Worked example: products and shops

ModelHow it holds the same dataEasy questionHard question
HierarchicalShop, then the products under itWhat is in the North shop?Where is every notebook?
NetworkProducts, shops and customers linked both waysWho buys in two shops?A new question with no ready link
RelationalA products table and a shops table joined by shop idAlmost any questionNothing is very hard, but it is more work to set up

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

Check: which model?

Have a go

Check: which model?

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

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