Deletion anomaly
Deleting a row also wipes out a separate fact stored only in that row, e.g. deleting the last student enrolled in a course also erases the course details.
Understanding Deletion anomaly in QCE Digital Solutions Unit 2
What it does: Because course facts share a table with student facts, one row holds both. Deleting the last student's row removes the course facts. The course teacher was stored only in Maya's row, so deleting the row also deletes the course details. That is a deletion anomaly. A deletion anomaly happens when removing one fact accidentally removes another. The second definition describes an insertion anomaly.
Common mistakes: REMOVE is not an SQL keyword. Rows are deleted with DELETE FROM. Student 7 may be the last student in a course, so deleting the row could also erase the course details (a deletion anomaly). SQL uses a single = to compare values in a WHERE clause, not ==. If Sam is the only IT101 student, this delete also wipes out the IT101 course details (a deletion anomaly).
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
deletion anomalyFill in the Blanks
Spot the Error
Student with a class code? Join your class →