โ What you will practise
- Understand why databases are used to store structured data.
- Identify tables, records and fields in a relational database.
- Explain primary keys and foreign keys.
- Read and interpret simple SQL queries.
A colourful, interactive revision guide preview designed to help GCSE Computer Science students understand tables, records, fields, keys, relationships and SQL queries.
This preview is based on the AQA GCSE Computer Science database topic. It supports revision of relational databases and SQL query structure.
tables records fields primary keys foreign keys SQLA field is one category of data, such as StudentID, Forename or Class.
A record is one complete set of data about one item, person or thing.
A table stores related records. A school database may have separate tables for students, classes and teachers.
Keys are used to identify records and link tables together. This is one of the most important ideas in relational databases.
A primary key uniquely identifies each record in a table.
A foreign key is a field in one table that links to the primary key in another table.
Here is a small sample table. In the full guide, students practise with several larger examples and exam-style SQL questions.
| StudentID | Forename | Class | TargetGrade |
|---|---|---|---|
| 101 | Aisha | 10A | 8 |
| 102 | Daniel | 10B | 7 |
| 103 | Maya | 10A | 9 |
It displays the forename and target grade for students who are in class 10A.
In the sample Student table, which field would be the best primary key?
StudentID, because each student has a unique ID.
What is the difference between a field and a record?
This answer is included in the full interactive guide, along with exam-focused explanation and extra checking questions.
What would this SQL condition select?
WHERE TargetGrade >= 8
The full guide includes more SQL conditions, worked examples and reveal-answer practice to help students build confidence.
Why are foreign keys useful in a relational database?
The full guide unlocks this answer with additional explanation of linked tables, primary keys, foreign keys and relationships.
This preview shows only a small part of the full resource. The complete guide is designed as a premium revision product for GCSE Computer Science students preparing for AQA 8525.
Preview resource by LogicPath Education ยท AQA GCSE Computer Science 8525 ยท Unit 3.7