Practice free →
HomeGATE CSEcomputerscienceDatabase Management Systems › If a combined Staff+Branch table stores the bran…

If a combined Staff+Branch table stores the branch address inside every staff row, what happens when the LAST employee of the Aberdeen branch resigns?

Athe Aberdeen branch address is erased with her row, a delete anomaly
Bthe Aberdeen address is automatically promoted to a new table
Cthe database refuses the deletion and asks for confirmation
Da phantom row keeps the branch alive in the index
Answer & Solution
Correct answer: A. the Aberdeen branch address is erased with her row, a delete anomaly
When two unrelated facts (the staff member, the branch address) share rows, removing one row accidentally removes the other. That is the delete anomaly. Real DBMSs do not promote facts on delete, nor refuse normal deletes; they cannot save you from a poor schema. The cure is to split the table.
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions