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

Preview

AESP task 3: Break a brief into entities and keys

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

A shoebox of paper stamp cards

The Kettle Lane shop gives each customer a paper card. A stamp goes on it for every pound spent. Ten stamps win a free drink.

The owner loses cards, forgets stamps and can not tell who her best customers are. She wants a better way to keep the data.

Key words

WordWhat it meansExample
Decompositionbreaking a big problem into smaller parts you can solve one at a time
Entitya thing the system keeps facts abouta customer
Attributeone fact about an entitya customer's name
Primary keyan attribute whose value is different for every row
Foreign keyan attribute that holds the primary key of another entity, to link them
Relationshipa link between two entitiesa customer makes purchases
Databasean organised collection of data, kept in linked tables

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

By the end of this lesson

Note

I can pick the entities, attributes and keys out of a brief, and say how a database improves on the current way.

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.

This is practice

Important

The real task comes from the exam board. This lesson uses an invented organisation and its own made-up data. Your teacher tells you how the real tasks are set and what you may bring.

Four steps through a brief

  1. Read the brief and list the things it talks about. Those are the entities.
  2. For each, list the facts the owner needs to keep. Those are the attributes.
  3. Choose what tells one from another. That is the key.
  4. Look at the verbs. They are the relationships.

This is decomposition: one big job becomes four small ones.

Worked example: Kettle Lane

EntityAttributesKeyRelationship
CustomerName, town, date joinedcustomer_idA customer makes many purchases
PurchaseDate, total spentpurchase_idA purchase belongs to one customer
ItemName, priceitem_codeAn item appears on many purchase lines
RewardName, stamps neededreward_idA customer wins many rewards

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

Say how it is better

The task asks for a design that improves on the current way. Name what is wrong now, then say what the design does about it.

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.