📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

When would ON DELETE SET DEFAULT be used?

A. When child rows should be deleted
B. When child rows should point to a default parent, such as an Unassigned department, after the parent is deleted ✅
C. When the delete should be blocked
D. When the parent has no children

Correct Answer: B. When child rows should point to a default parent, such as an Unassigned department, after the parent is deleted

Explanation

SET DEFAULT reassigns children to a predefined default parent, which must exist, instead of deleting them or leaving them null.