Defining a single-table database from storage requirements
The plan for one table: list each field the scenario needs, give it a data type and any validation, and choose a primary key so the table can hold every record.
Understanding Defining a single-table database from storage requirements in IGCSE Computer Science Paper 2
What it does: A yes/no value is stored as the Boolean data type, so the field Vaccinated is given the type Boolean. A number with a decimal part is stored as Real (floating point). Integer would lose the decimal places. A primary key must be unique for each record. Surnames can be shared by many students. Dates should use the date/time type so they can be checked and sorted correctly. A range check tests that a value lies between a lowest and highest limit. A presence check only tests that data was entered.
Common mistakes: The table lists only three fields: PetID, Name and Born. The header should say (3 fields) so it matches the field lines. A Boolean can only hold two values (True/False), so it cannot give each book a unique ID. BookID should be Integer (or Text).
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 500–522) and word search (Modules 500–538).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
table structureFill in the Blanks
Spot the Error
Student with a class code? Join your class →