Insertion, update and deletion anomalies
A problem caused by redundant data in one table: adding, changing or deleting a record leads to missing data, inconsistent copies or accidental loss of other facts.
Understanding Insertion, update and deletion anomalies in WA Computer Science ATAR Unit 2
What it does: If order 7 is the only row holding that product's name and price, deleting the order accidentally destroys the product facts as well. The table's design needs an order row to hold the product, so a product with no order has to be added with missing (NULL) order fields, or cannot be added at all. The captain's details cannot be added without a student row. Needing unrelated data before you can store a fact is an insertion anomaly. Redundant copies are the cause. Storing a fact once in its own table means one UPDATE is enough. The same fact now has conflicting values. This is the result of an update anomaly.
Common mistakes: A DELETE statement needs FROM before the table name. It should be DELETE FROM ClassList. This deletes the student's row, which also removes the teacher's phone number stored only in that row (a delete anomaly). The new teacher has no student, so the studentId primary key would be empty. The insert fails. This is an insert anomaly: a fact about a teacher can't be stored without an unrelated student record.
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 28–122) and word search (Modules 28–266).
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
data anomalyFill in the Blanks
Spot the Error
Student with a class code? Join your class →