📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A Library deletes a Book with ON DELETE SET NULL on Loan.BookID. What does this imply about Loans?

A. Loan records are transferred to another book
B. Loan records are kept as history, but they no longer point to a specific book ✅
C. Loan records are deleted
D. The delete is blocked

Correct Answer: B. Loan records are kept as history, but they no longer point to a specific book

Explanation

SET NULL is chosen when the child record has historical value even after its parent is gone.