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

Preview

SC 3.10: Drawing the three data models

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

50 minutes

A picture settles it

Two engineers argue about how staff, rooms and laptops link. One says a laptop belongs to a room. The other says it belongs to a person.

Then somebody draws it. Boxes, arrows and words on the arrows. In a minute everyone agrees what the data looks like. Drawing a model is a skill you will use often.

By the end of this lesson

Note

I can draw three kinds of data model of the same data.

Key words

WordWhat it meansExample
Hierarchical modelA tree: every item has one parent.Folders
Network modelItems linked any way, so an item can have several parents.Staff and rooms
Relational modelData in tables joined by keys.Assets and rooms
BlockA box that stands for one kind of item.Room
ArrowA line with a head that shows a link and its direction.Room to Asset
LabelA word on a block or an arrow that names it.holds
TableRows and columns of data about one kind of item.Assets
RowOne record in a table.A1, Laptop, R1
ColumnOne field, down all rows of a table.Kind
KeyA column whose value identifies a row or points to another table.Room id

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

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.

Drawing a hierarchical model

Use blocks for item types and arrows from parent to child. Put a label on each arrow.

Start with the root at the top. Every other block has exactly one arrow coming in. If a block needs two arrows in, it is not a hierarchy.

Check: read the tree

Have a go

Check: read the tree

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

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