📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In a Library system, deleting a Member with ON DELETE RESTRICT on Loan.MemberID will result in what if the member has active loans?

A. The loans are deleted
B. The loans are transferred to another member
C. The member is deleted and loans become NULL
D. The delete is rejected until the loans are returned or removed ✅

Correct Answer: D. The delete is rejected until the loans are returned or removed

Explanation

RESTRICT protects active child rows, so the parent cannot be removed while loans still reference the member.