Bird
0
0

Which action is prevented by referential integrity enforcement when deleting a row from a parent table?

easy📝 Conceptual Q2 of 15
SQL - Table Relationships
Which action is prevented by referential integrity enforcement when deleting a row from a parent table?
AInserting duplicate primary keys in the parent table
BDeleting any row regardless of child table references
CUpdating a primary key value in the parent table
DDeleting a row that has matching foreign keys in child tables without handling them
Step-by-Step Solution
Solution:
  1. Step 1: Understand delete restrictions with referential integrity

    Deleting a parent row referenced by child rows is restricted unless handled (cascade or restrict).
  2. Step 2: Identify what is prevented

    It prevents deleting parent rows that would leave orphaned child rows.
  3. Final Answer:

    Deleting a row that has matching foreign keys in child tables without handling them -> Option D
  4. Quick Check:

    Referential integrity prevents orphan deletes [OK]
Quick Trick: Cannot delete parent row if child rows exist without cascade [OK]
Common Mistakes:
MISTAKES
  • Thinking it prevents all deletes
  • Confusing delete with update restrictions
  • Assuming it prevents duplicate keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes