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

Preview

Unit 6 A1, B1, C1: Review: design, query and present

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 bike hire shop on paper

Greenfield Bike Hire is a made-up shop with five customers, five bikes and a paper diary. The owner asks you three things.

Who hired which bike? Which type of bike earns the most? How can I show the answer to my staff? You will plan the tables, ask the questions and present the result.

By the end of this lesson

Note

I can plan three linked tables, write a query (a question you ask a table) across them and present the result.

Key words

WordWhat it means
Databasean organised collection of data
Data dictionarya table that describes every field
Primary keya field that is different for every record
Foreign keya field that holds a key from another table
Querya question you ask a database
Presence checka check that a field is not empty
Range checka check that a number is between two limits
Format checka check that data follows a set pattern
Audiencethe people who will read or watch

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

Starter: what you already know

Have a go

Starter: what you already know

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

Step 1: the data dictionary

TableFieldTypeRule or key
customerscustomer_idWhole numberPrimary key
customerslast_nameAlphabeticPresence check
customersphoneAlphanumeric, 11 charactersFormat check, starts 07
bikesbike_idWhole numberPrimary key
bikesbike_typeAlphabeticList check: Road, Mountain, City
hireshire_idWhole numberPrimary key
hirescustomer_id and bike_idWhole numberForeign keys
hiresdaysWhole numberRange check, 1 to 14

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

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

8 more parts of this lesson are in the full lesson, which colleges teach from the Library. A college account gives your students all of it.