Bird
0
0

What does referential integrity enforcement ensure in a relational database?

easy📝 Conceptual Q1 of 15
SQL - Table Relationships
What does referential integrity enforcement ensure in a relational database?
AThat foreign key values always match primary key values in the referenced table
BThat all tables have a primary key defined
CThat data is encrypted during transmission
DThat queries run faster by using indexes
Step-by-Step Solution
Solution:
  1. Step 1: Understand referential integrity concept

    Referential integrity means foreign keys must match existing primary keys or be null.
  2. Step 2: Identify what enforcement does

    Enforcement prevents invalid foreign key values that do not exist in the referenced table.
  3. Final Answer:

    That foreign key values always match primary key values in the referenced table -> Option A
  4. Quick Check:

    Referential integrity = foreign key matches primary key [OK]
Quick Trick: Foreign keys must match primary keys or be null [OK]
Common Mistakes:
MISTAKES
  • Confusing referential integrity with indexing
  • Thinking it enforces encryption
  • Assuming it requires all tables to have primary keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes