GCSE · Computer Science · AQA · Spec 8525
Data redundancy and inconsistency
One database. One customer. Two different answers to "where does Sam live?" So how does a database end up arguing 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.
Step through and keep your eye on the last column. Which step is the one that goes wrong?
Computer Science · Structure
The redesign: two tables, one link
Tap each box. Where does Sam's address actually live, and how do the orders find it?
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, like one customer's address on every order.
- Data inconsistency means copies of the same data don't match, so the database holds conflicting values for one fact.
Have a goYour friend moans: "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). Picking just one misses that a single example can show both.
- They're not two names for one thing: redundancy is the repeating, inconsistency is the copies disagreeing.
- Redundancy is what makes inconsistency possible. With only one copy, there's nothing for it 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; the data is only inconsistent once copies actually disagree.
- Here's how it goes wrong: the data changes, and the update reaches some copies but misses others.
- Repeated data also wastes storage space, and makes updating slower and more error-prone, because each change must be made in several places.
- The fix: split the data into separate linked tables, so each fact is stored only once.
- A primary key identifies each record in a table.
- A foreign key is a field holding another table's primary key. That's what links the tables, without copying the data.
- So a change is made in one place only, which reduces the risk of inconsistency.
Have a goA shop uses linked tables. Priya has 40 orders, then moves house. Your mate groans: "That's 40 edits." How many does it really take?
One: her record in the Customers table.
Her orders store only her customer ID, not her address, so the address lives in one place. Forty edits is the flat-table answer.
The big picture
Storing the same data in more than one place is data redundancy. It looks harmless while every copy matches. But when the data changes and an update misses a copy, the copies stop matching, and that is data inconsistency. Redundancy also wastes storage space and makes updates slower and more error-prone, because the same change has to be made in several places. The fix is to split the data into linked tables, joined by a primary key and a foreign key, so each fact is stored once and 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. Easy slip: both involve repeated data. But redundancy is the repeating; inconsistency is the copies no longer matching. A redundant database can stay consistent, right up 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 turn into inconsistency?
Besides inconsistency, what does redundancy cost?
Why does redundancy make updates error-prone?
How does a relational database reduce redundancy?
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 30 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.