Skip to content
Cambridge AS & A Level9626

Data dictionary

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Data dictionary notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Data dictionary notes as text: skim, search, and jump between subtopics.

~9 min read

1. Text, alphanumeric and Boolean data

Text and alphanumeric fields hold characters: letters, digits and symbols. A Boolean (logical) field holds one of two values: yes/no or true/false.

Data such as a telephone number or zip code contains digits but is never used for calculations, so it is stored as alphanumeric data. A leading zero or spaces also rule out a numeric type.

Examiner insight

“Many responses incorrectly suggested integer. This was not appropriate because the example has a leading zero and includes spaces.” “The data dictionary should have contained all of these atomic fields as well assigning appropriate data types to data such as the zip code, area code and telephone number, which, even though they contained numeric data would never be used for calculations so should be stored as alphanumeric data types.”

Worked example 14 marks

A school records each student's mobile number, for example 07700 900123, and whether the student has paid the trip fee. State the most appropriate data type for each field and give a reason for each choice.

  1. 1

    mobile number: text / alphanumeric [1]

  2. 2

    integer is unsuitable because the number has a leading zero and spaces [1]

  3. 3

    trip fee paid: Boolean [1]

  4. 4

    the field has only two possible values, yes/no [1]

2. Numeric data: integer, decimal, currency and percentage

Numeric data has sub-types. An integer is a whole number. A decimal holds a value to a stated number of decimal places. Currency is used for money.

Choose decimal when a value is not necessarily a whole number. Choose currency when the field must display the currency symbol, formatted to two decimal places. Percentage is a data type in its own right.

Examiner insight

“Some candidates did not appreciate that hourly_rate_of_pay would not necessarily be a whole number, and so suggested integer as the most appropriate data type.” “Many responses correctly identified currency as the correct answer but did not explain, for instance, that a decimal data type could not be used as it would not display the currency symbol.”

Worked example 14 marks

A shop's database has a field for the price of an item, displayed as £4.50, and a field for the number of items in stock. State the most appropriate data type for each field and give a reason for each choice.

  1. 1

    item price: currency [1]

  2. 2

    a decimal type would not display the currency symbol [1]

  3. 3

    items in stock: integer [1]

  4. 4

    a count of items is always a whole number [1]

3. Date and time data

Dates and times use the date and time data type. Store a date of birth, not an age.

Age changes every year, so it is dynamic. A calculated field is a better fit than a fixed value: age is today minus the date of birth. Subtracting the year of birth from the current year ignores the day and month.

Examiner insight

“Candidates did not take into account the relevance of date within the year and stated that the age was now minus year of birth.”

Worked example 13 marks

A gym stores each member's date of birth and needs each member's age for the membership card. Explain how the database should hold this information.

  1. 1

    store the date of birth in a date and time field [1]

  2. 2

    age is dynamic: it changes every year, so a fixed value would go out of date [1]

  3. 3

    age is a calculated field: today minus the date of birth [1]

4. Components of a data dictionary

A data dictionary is used to specify the structure of a database. It is laid out as a table and names the database table its fields belong to.

For each field it records the field name, the data type (with the sub-type for numeric data), the field size for alphanumeric data, whether it is the key field, and a validation rule to reduce data entry errors.

All the required elements are visible in tabular form, with specific validation rules written out, not Yes/No.

Worked example 14 marks

Describe four components of a data dictionary.

  1. 1

    table name: names the database table that the fields belong to [1]

  2. 2

    data type: the type of data held, with the sub-type for numeric data [1]

  3. 3

    field size: the length of the field, for alphanumeric data [1]

  4. 4

    validation: a specific rule to reduce data entry errors, such as a range from 0 to 100 [1]

5. Creating a data dictionary

Work through the data one field at a time. Choose each data type from how the data is used, not from how it looks.

Split names and addresses into atomic fields, such as `forename` and `surname`. A field with unique values, such as a customer number, becomes the primary key: do not add an extra ID field. Use snake case or camel case with no spaces.

Examiner insight

“Future candidates must understand that fields should be created using either camel case or snake case and that the use of spaces in field names or table names in the table structure is not appropriate.” “Some candidates provided no field sizes for any of the fields in their data dictionary and those that did often incorrectly included sizes for fields identified as numeric.”

Worked example 16 marks

A swimming club keeps the member data in the table. No forename or surname is longer than 12 characters and no fee is above £100. Create a data dictionary for a table named members.

MemberNameDate joinedAnnual feeNewsletter
M0172Amira Khan14/03/2025£45.00Yes
M0173Tom Reid02/09/2024£60.00No
  1. 1

    table name `members`, with a column each for field name, data type, size, key and validation [1]

  2. 2

    `member_id`: alphanumeric, size 5, primary key [1]

  3. 3

    `forename` and `surname`: alphanumeric, size 12 each, so the name is atomic [1]

  4. 4

    `date_joined`: date and time [1]

  5. 5

    `annual_fee`: currency; validation: range check from 0 to 100 [1]

  6. 6

    `newsletter`: Boolean (yes/no) [1]

Recap

  • Telephone numbers and zip codes are never used for calculations: store them as alphanumeric data.
  • Integer is a whole number. Use decimal for values that need not be whole, and currency for money.
  • Boolean holds yes/no or true/false. Date and time holds dates.
  • Store the date of birth and calculate age: it is dynamic.
  • A data dictionary names the table and gives, for each field, its name, data type, size, key and validation.
  • Field names have no spaces. Split names into atomic fields. Give sizes to alphanumeric fields only.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the most appropriate data type for a field that records whether a customer has paid.1 mark
    Answer
    1. Boolean.

    Trap: Choosing text because the answers are words, such as Yes and No.

  2. A field stores a telephone number such as 0161 496 0123. State the most appropriate data type and give a reason.2 marks
    Answer
    1. Text / alphanumeric [1].
    2. It has a leading zero and spaces, so integer is unsuitable [1].

    Trap: It contains digits, so it must be numeric.

  3. A field stores hourly_rate_of_pay, for example 14.75. State the most appropriate data type and give a reason.2 marks
    Answer
    1. Decimal [1].
    2. The value is not necessarily a whole number [1].

    Trap: Integer cannot hold the pence.

  4. A field stores the price of a ticket, displayed as £12.50. State the most appropriate data type and give a reason.2 marks
    Answer
    1. Currency [1].
    2. A decimal type would not display the currency symbol [1].

    Trap: Choosing decimal because the value has a decimal point.

  5. State the most appropriate data type for each field. (a) The date a customer joined. (b) The number of seats booked. (c) The discount given, such as 15%.3 marks
    Answer
    1. (a) Date and time [1]; (b) integer [1]; (c) percentage [1].

    Trap: Using one numeric type for every number.

  6. Name three components that a data dictionary records for each field.3 marks
    Answer
    1. Any three from: field name, data type, field size, key field, validation rule [3].

    Trap: A list of field names alone is not a data dictionary.

  7. A student names two fields Date of Birth and Home Address. Give the mistake in both names and write a better name for each.3 marks
    Answer
    1. Both names contain spaces [1].
    2. `date_of_birth` [1] and `home_address` [1].

    Trap: Adding an underscore to only one name, or using spaces.

  8. A club records each member's name as one field, for example Amira Khan. Explain why the data dictionary should hold the name differently and give suitable field names.3 marks
    Answer
    1. The data should be atomic: one value in each field [1].
    2. `forename` [1] and `surname` [1].

    Trap: Keeping one `name` field and widening its size.

  9. A data dictionary has two fields. The field `post_code` holds up to 8 characters. The field `stock_count` holds whole numbers up to 500. State the data type and field size, if any, for each field.3 marks
    Answer
    1. `post_code`: alphanumeric [1], size 8 [1].
    2. `stock_count`: integer, with no field size [1].

    Trap: Giving a field size for a numeric field.

  10. A vet keeps one table named pet. Each pet has a code such as P0381, a name of up to 15 characters, the owner's telephone number, a date of birth, a weight in kilograms to one decimal place, and whether it has been vaccinated. The vet also wants to print each pet's age. Create the data dictionary.7 marks
    Answer
    1. Table name `pet` [1].
    2. `pet_id`: alphanumeric, size 5, primary key [1].
    3. `pet_name`: alphanumeric, size 15, and `owner_phone`: alphanumeric, never used for calculations [1].
    4. `date_of_birth`: date and time; age is calculated, not stored [2].
    5. `weight_kg`: decimal, one decimal place; `vaccinated`: Boolean [2].

    Trap: Storing age as an integer, so it is out of date a year later.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
Integer, for a hourly rate of pay.Decimal: the value is not necessarily a whole number.
Text.Text, because the number has a leading zero and spaces, so integer is unsuitable.
Decimal, for a price.Currency: it displays the currency symbol.
Validation to stop errors.Validation checks reduce data entry errors.
Validation: Yes.A specific rule, such as a range check from 0 to 100.

Frequently asked questions

Which data type should a telephone number use?
A telephone number should be text or alphanumeric. It has a leading zero and spaces, so integer is unsuitable. It is never used for calculations, so it is stored as alphanumeric data even though it contains digits.
When should a field be integer, decimal or currency?
Use integer for a whole number, such as a count of items in stock. Use decimal when a value is not necessarily a whole number. Use currency when the field must display the currency symbol, because a decimal type would not display it.
How should a database store a person's age?
Store the date of birth in a date and time field, and calculate the age. Age changes every year, so it is dynamic and a fixed value would go out of date. Age is today minus the date of birth, because subtracting the year of birth ignores the day and month.
What does a data dictionary contain?
A data dictionary specifies the structure of a database and is laid out as a table. For each field it records the field name, the data type with the sub-type for numeric data, the field size for alphanumeric data, whether it is the key field, and a validation rule to reduce data entry errors.
How should field names be written in a data dictionary?
Field names and table names should have no spaces, and should use snake case or camel case. A field holding two pieces of data, such as a full name, should be split into atomic fields such as forename and surname. Give field sizes to alphanumeric fields only, not to numeric fields.
Why do answers about data types lose marks even when the type is right?
Many responses identified text as the answer but did not give a reason why an alternative data type would be unsuitable. Give the reason: for a telephone number, the leading zero and spaces rule out integer, so the reason must be given with the type.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters