Single lesson · Written for AQA GCSE Computer Science (8525)

Relational databases: keys, redundancy and inconsistency – AQA GCSE Computer Science lesson (8525)

Pupils learn to explain relational databases, primary and foreign keys, and how they remove data redundancy and inconsistency.

Also in a bundle Software, Translators and Databases – AQA GCSE Computer Science lessons (8525) 14 lessons for £39 · save 30% on buying separately

Lesson 4 of 14 in unit 11.2 Software, Translators and Databases, taught in Year 11, Autumn 2. It answers one big question: Why split data into linked tables?

By the end, pupils can explain relational databases, primary and foreign keys, and how they remove data redundancy and inconsistency.

The Build (the main task)
Explain the concept of a relational database (2 marks). State the primary key of the Owner table and the foreign key in the Pet table (2 marks). Explain how storing owners in their own table removes data inconsistency (2 marks).
Support version
Two linked tables with the key fields shaded and arrows to draw.
Challenge
Explain what would go wrong if two owners were given the same OwnerID. (2 marks) The Visit table has the fields VisitID, PetID, VisitDate and Reason. State the primary key of Visit, the foreign key in Visit, and the table the foreign key links to. (3 marks) Explain how a relational database removes data redundancy and data inconsistency. (4 marks)
Real-world link
An owner with three pets, typed in three times.
Key words
Primary key, Foreign key and Data redundancy, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“A relational database links several databases together”; “A foreign key must be unique in its own table”.
AQA 8525 specification
3.7.1 (relational databases: tables, records, fields, data types, primary and foreign keys, redundancy and inconsistency).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Pupils can do it all on paper.

Also sold in the Software, Translators and Databases unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for AQA GCSE Computer Science (8525). It is not endorsed by AQA.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for GCSE Computer Science (AQA)

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.