Insertion anomaly
A problem where a new fact, like a new course, cannot be stored until unrelated data, like a student, exists, forcing null values or dummy rows in a single table.
Understanding Insertion anomaly in QCE Digital Solutions Unit 2
What it does: The student fields are filled with NULL just to store the new course, which shows the new-course-with-no-student insertion anomaly. Mixing course facts and student facts in one table means a course row cannot exist without a student row. Splitting them into separate tables fixes this. Dummy rows create false records. A count of students would include 'TBA', which makes the data incorrect. The same anomaly can work the other way. A new fact can't be stored cleanly without unrelated data, so NULLs are forced in. Normalisation separates facts about different entities, so each can be inserted independently.
Common mistakes: A new course with no student forces a NULL into sid, but a value is still needed for every column. The line should be VALUES (NULL, 'DIG11', 'Art'); so the count matches (sid, code, title). Text values need quotes. It should be 'Art'. The dummy student 0 is another sign of an insertion anomaly: the course cannot be saved without unrelated data.
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 144–185) and word search (Modules 144–228).
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
insertion anomalyFill in the Blanks
Spot the Error
Student with a class code? Join your class →