← Quiz: ER to Tables: all 15 questions
Quiz: ER to Tables · Question 13 of 15
Why does a weak entity's foreign key to its owner usually use ON DELETE CASCADE?
Why does a weak entity's foreign key to its owner usually use ON DELETE CASCADE?
- A.To make inserts faster
- B.To allow duplicate owners
- C.So the weak rows can move to another owner
- D.A weak entity cannot exist without its owner, so its rows should be removed with the owner
Answer & explanation
Correct answer: A weak entity cannot exist without its owner, so its rows should be removed with the owner
For example, an employee's dependents go when the employee row is deleted.
Can you get the rest right without peeking?
Take the timed Quiz: ER to Tables quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →