GCSE · Computer Science · AQA · Spec 8525
Data redundancy and inconsistency
One database, one customer, two different answers to "where does Sam live?" How does a database end up disagreeing with itself?
Databases · Redundancy to inconsistency
Sam moves house. Who updates what?
Step through the same change twice: first on a flat table, then on linked tables.
Before you step: Sam Patel's address is written on three orders. Sam moves. What would have to go wrong for the database to hold two different addresses for Sam?
| Design | Step | Order 101 | Order 102 | Order 103 | Customers table | Copies agree? |
|---|---|---|---|---|---|---|
| Flat table | Start | 5 Mill Lane | 5 Mill Lane | 5 Mill Lane | (none) | Yes |
Output
Step 1: Sam's address is written on every order. Same data, stored in three places: that's data redundancy. Right now it's harmless, because every copy says the same thing.
Use the step controls and watch the last column. Which step is the one that goes wrong?
Computer Science · Structure
The redesign: two tables, one link
Tap any box to see what it does.
Tap any part of the diagram to see what it does.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- Data redundancy means the same data is stored in more than one place in a database.
- Data inconsistency means copies of the same data don't match.
Have a goYour friend says: "My phone number is on three school forms. Two say 07700 900123 and one says 07700 900321." Redundancy, inconsistency, or both?
Both.
The number is stored in more than one place (redundancy) and the copies don't match (inconsistency).
- Redundancy is the repeating; inconsistency is the copies disagreeing. They are not the same thing.
- Redundancy is what makes inconsistency possible: with only one copy, there is nothing to disagree with.
Have a goMaya is sure that if a database has redundancy, it must be inconsistent. What could be true of a redundant database that proves her wrong?
All the copies match, so it is redundant but still consistent.
Redundancy only makes inconsistency possible; it takes copies that disagree for the data to be inconsistent.
- It goes wrong when an update changes some copies but misses others.
- Redundancy also wastes storage space, and makes updates slower and more error-prone.
- The fix is to split the data into linked tables, so each fact is stored once.
- A primary key identifies each record in a table.
- A foreign key is a field that holds another table's primary key, and that is how the tables are linked.
Have a goAn Orders table stores "CustomerID 7" on each order. That ID is the primary key of a record in the Customers table. In Orders, is it a primary key or a foreign key?
A foreign key.
It sits in Orders but holds the primary key of a record in another table, which is exactly what a foreign key is.
- Now a change is made in one place, so the risk of inconsistency is reduced.
The big picture
Storing the same data in more than one place is called data redundancy. If an update changes some copies but misses others, the copies stop matching, which is data inconsistency. Redundancy also wastes storage space and makes updates slower and more error-prone. Splitting the data into linked tables, joined by a primary key and a foreign key, stores each fact once so a change is made in one place.
Key points
Worked example
Problem
A school library stores each member's form group on every one of their loan records. Mia has 4 loans and moves from form 10B to form 10C. The librarian updates 3 of her 4 loan records. (a) What is redundant? (b) Is the data now consistent? (c) How would linked tables fix this?
⚠ Watch out
Treating redundancy and inconsistency as two names for the same problem. Redundancy is the repeated data. Inconsistency is what you get when the copies stop matching. A redundant database can still be consistent, until a change misses a copy.
Memory hook
Redundancy is repeating. Inconsistency is repeating that fell out of step. The cure: say it once and link it by key.
Check yourself
Cover the page and finish these in your own words: "Redundancy means ___. Inconsistency means ___. Redundancy makes inconsistency possible because ___." Then say what a foreign key stores.
Flashcards
(10)What is data redundancy?
What is data inconsistency?
Which one makes the other possible: redundancy or inconsistency?
When does redundancy lead to inconsistency?
Besides inconsistency, what does redundancy cost?
Why does redundancy make updates error-prone?
How is redundancy reduced?
What is a primary key?
What is a foreign key?
Why do linked tables reduce the risk of inconsistency?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 9 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.