📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A Product is discontinued and its Supplier is deleted. If Product.SupplierID has ON DELETE SET NULL, what is preserved?

A. The Product rows, with SupplierID cleared, so product history and stock remain ✅
B. The delete is blocked
C. The Supplier rows
D. The link between them

Correct Answer: A. The Product rows, with SupplierID cleared, so product history and stock remain

Explanation

SET NULL keeps the child product data while removing the link to the deleted supplier.