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 B1: The data dictionary

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

Notes that nobody can build from

Oakfield Youth Club is made up. A manager writes: "We need to store members. Name, age, phone." Then she goes on holiday.

A technician has to build it. How long is a name? Is the phone number a number? What if nobody gives an age? A data dictionary (a table that describes every field) answers every one of these questions.

By the end of this lesson

Note

I can write a data dictionary entry for each field of a table.

Key words

WordWhat it means
Data dictionarya table that describes every field of your tables
Data typethe kind of data a field holds
Field sizehow much a field can hold
Formathow a value is shown
Default valuethe value a field gets if nobody types one
Primary keya field that is different for every record
Foreign keya field that holds a primary key from another table

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.

A data dictionary describes every field

A data dictionary has one row for each field. Its columns give the field name, data type, field size, format, default value and any key.

With a good dictionary, a person who never met you can build the same tables.

Worked example: the members table

Field nameData typeSizeFormatDefaultKey
member_idNumeric, whole numberWhole numberNo decimalsMade for youPrimary key
first_nameAlphabetic30 charactersCapital letter firstNone
last_nameAlphabetic30 charactersCapital letter firstNone
ageNumeric, whole numberSmall whole numberNo decimalsNone
phoneAlphanumeric11 charactersStarts with 0None
photo_consentLogical, yes or no1 valueYes or NoNo

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.