GRADE 7 · COMPUTING · UNIT 4 · LESSON 4.5

The power of data: Using data modelling

Database models: Setting up your data model

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

8 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Database models: Setting up your data model

Plan a data dictionary before changing a table. For each field, identify its purpose, data type and any justified text-length limit. A value that contains digits can still be an identifier rather than a quantity for calculation. Check that the planned key is unique in the intended dataset and that changing a field will not truncate existing values.

Today’s two goals
  • Specify field names, types, sensible field lengths and a primary key for the supplied record designs.
  • Justify a unique identifier for the gaming-registration table using the data shown.
Original PaxaKids illustration for Database models: Setting up your data model. Precise program text and data are supplied in the workbook models.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Explore the clues

Tap one card to find out more.

Understand the idea

Plan a data dictionary before changing a table. For each field, identify its purpose, data type and any justified text-length limit. A value that contains digits can still be an identifier rather than a quantity for calculation. Check that the planned key is unique in the intended dataset and that changing a field will not truncate existing values.

Concept to practise: Database models: Setting up your data model.

Work through an example

A vehicle registration contains letters, numbers and a space, so treat it as text. Mileage is a quantity for calculation and price is a money value. In the book’s gaming task, Username is the specified key: check that every supplied username is unique and present before applying it.

Try before your workbook

Does the longest value currently shown prove the maximum text length that future records will need?

Check my readiness thinking

No. Distinguish the length observed in the sample from a justified limit for the task. Inspect all existing values, consider the intended records and test the saved table for truncation or conversion problems.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Plan the data before changing a table

A data dictionary records the fields in a model, their types and suitable properties. It helps you decide what values can be stored and which operations are useful.

Plan a primary key that identifies a record, and choose field limits that fit the intended data. A limit based only on today’s shortest examples may reject valid future values.

Examine the supplied car-record example

Examine the supplied car-record example — original model
RegistrationMakeModelColourMileagePrice
395 BYNNissanSunnyRed34000$7000
765 GGTKiaCeedBlue45000$4500
765 MNEToyotaCorollaWhite12000$8995
223 PWLKiaRioBlack67000$6598
990 UJNOpelCorsaWhite78658$4656

Separate text length from numeric storage

Separate text length from numeric storage — original model
Field kindWhat to plan
Registration / namesShort Text and a suitable maximum character count.
MileageNumber with an integer subtype suitable for the range.
PriceCurrency; set a display format rather than counting the $ sign.
DateDate/Time; choose an unambiguous display format.

Inspect all seven gaming fields

Inspect all seven gaming fields — original model
FieldExample from the Paxa data
Usernamegamer001
PasswordDEMO0001 — invented demo token
Emailgamer001@example.org
Age10
Date Joined2026-10-01
Gamer LevelBeginner
Parental PermissionYes

Choose useful limits and the specified key

The source begins the gaming dictionary with Username — Short Text — 30. Keep that plan and make Username the primary key for this exercise.

For other text fields, check both the sample and the intended use. Intermediate needs 12 characters. A date display such as DD/MM/YYYY does not make the stored date a ten-character text field.
Choose useful limits and the specified key — original model
DecisionReasoning to record
Username keyUnique non-empty username identifies the record in this model.
Text limitEnough for valid planned values, with a stated assumption.
Age / date / permissionUse suitable numeric, date and Boolean types.

Apply the plan in the native database

  1. Open original GamingComp_Paxa.accdb and Registration Data
  2. Inspect field properties in Design View
  3. Apply your planned types and suitable text lengths
  4. Set Username as the primary key
  5. Save, reopen and check all twelve records against the plan

Practice files for this lesson

Save a copy of these original PaxaKids learner files before editing in suitable software. Some code and datasets deliberately need completion or repair. Downloading a file does not run it. Use invented data; record actual tests separately from predictions. Native software practice files are not print-optimised; use the student PDF for printing.

Paxa the Fox

Try one step with Paxa!

Use supplied fictional records. Do not disclose personal details, upload private photos or bypass browser warnings to complete an activity. Save personal responses before leaving.

Our Unit 4 learning path
  1. Lesson 4.1: Data models, simulations and real-life scenarios
  2. Lesson 4.2: Spreadsheets: Using Microsoft Excel
  3. Lesson 4.3: Modelling tools: Conditional formatting
  4. Lesson 4.4: Databases: Using Microsoft Access
  5. Lesson 4.5: Database models: Setting up your data model
  6. Lesson 4.6: Collecting user data
  7. Lesson 4.7: Searching for the answers
  8. Lesson 4.8: Highlighting the important data
  9. Lesson 4.9: Modelling methods: Software choices
  10. Lesson 4.10: Database reports and grouped counts
  11. Lesson 4.11: What-If Analysis and Goal-Seek Analysis
  12. Lesson 4.12: Final project
  13. Lesson 4.13: Evaluation
  14. Lesson 4.14: What can you do?
For grown-ups: using this lesson

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

2. Fill in your workbook

Read the teaching and the complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

Database models: Setting up your data model8 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

TAKE YOUR PRACTICE OFFLINE

3. Download the student worksheet

All 8 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 8.4 MiB · No answer key included

Download worksheet PDF ↓

TRY FIRST, THEN CHECK TOGETHER

Download the student worksheet →

4. Answers & guidance

Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

Show answers for all 8 worksheets

Worksheet 1

  1. Question 1: What is a data dictionary used for? planning field names, types and properties
  2. Question 2: What must hold for a primary-key value? it is present and unique within the table

Worksheet 2

  1. Question 3: Which field is the strongest key candidate for these five records under this model? Registration

Worksheet 3

  1. Question 4: How many characters are in 395 BYN, including the space? 7
  2. Question 5: Does a six-digit mileage require a six-character Short Text field? no; choose a suitable numeric type for the values and processing

Worksheet 4

This page introduces the activity. There are no marked responses on this sheet.

Worksheet 5

  1. Question 6: What happens if Gamer Level is limited to only 8 characters? Intermediate cannot be stored in full

Worksheet 6

  1. Question 7: Before reducing a text field’s size, what should you check? existing values and valid future values fit without truncation
  2. Question 8: Which setting is appropriate for Parental Permission? Yes/No

Worksheet 7

  1. Question 9: Complete data dictionaries for all six car fields and all seven gaming fields, using the supplied CSV templates. Mark and justify each key. Distinguish observed sample lengths from chosen text limits and numeric/date storage. Use this table for the gaming plan; attach the car plan and the reasons for your choices. Both source designs addressed. Car: Registration unique among shown records under declared model, Short Text; Make/Model/Colour Short Text, Mileage Number with integer subtype, Price Currency. Registration observed7 including space, Make6, Model7, Colour5; chosen bounds may allow future records, no one universal maximum assumed. Numeric digit counts/display characters not text Field Size. Gaming Username Short Text30 as supplied example and primary key with unique/non-null enforcement; Password demo-only Short Text, Email Short Text, Age Number integer, Date Joined Date/Time, Gamer Level Short Text enough for Intermediate12, Parental Permission Yes/No. Proposed teacher sizes Username30, demoPassword30, Email100, GamerLevel12; justified alternative compatible text limits accepted. Age Integer is storage choice rather than two-character maximum, date format not text length, Boolean not three-letter field. Need sound reasons and actual data support; password tokens are invented examples only, not real credentials. No numeric score. Grown-up review; personal evidence is required.

Worksheet 8

  1. Question 10: Amend Registration Data in the Paxa database to match your dictionary, with Username as the primary key. Save and reopen it. Record the final types and text limits, the twelve-record count, checks that dates/ages/permission values are correctly typed and that no values were truncated. Explain a key choice and one field-size decision; name the saved version and any correction or pending step. Native saved Registration Data matches justified dictionary; Username Short Text30 primary key, all twelve original sample records retained. Password/Email/GamerLevel Short Text appropriate lengths, Age numeric integer, DateJoined real Date/Time and ParentalPermission Yes/No. Intermediate not truncated, all Yes/No values correctly converted and sample ages/ISO dates preserved. Keys unique/non-null and no duplicate Username accepted. Actual Design View/schema/reopen evidence and file/version, clear justification of Username and a length/storage choice; native work pending if incompatible software unavailable, not claimed satisfied by CSV alone. Demo tokens only, no real passwords collected or plain-text production authentication advocated. No numeric scoring. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Database models: Setting up your data model with this free Grade 7 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

Understand your results

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

The book pages identify the related teaching topic. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.