📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In a School, deleting a Teacher with ON DELETE RESTRICT on Class.TeacherID will do what if the teacher has classes?

A. Block the delete until the classes are reassigned to another teacher ✅
B. Set TeacherID to NULL
C. Delete the classes automatically
D. Delete the teacher and the school

Correct Answer: A. Block the delete until the classes are reassigned to another teacher

Explanation

RESTRICT protects the classes, so the teacher cannot be removed while classes still depend on them.