Bird
0
0

What is the main purpose of referential integrity in a database?

easy📝 Conceptual Q11 of 15
SQL - Table Relationships
What is the main purpose of referential integrity in a database?
ATo speed up query execution
BTo ensure relationships between tables remain consistent
CTo store large amounts of data efficiently
DTo create backup copies of the database
Step-by-Step Solution
Solution:
  1. Step 1: Understand referential integrity concept

    Referential integrity ensures that foreign keys in one table correctly reference existing rows in another table.
  2. Step 2: Identify the main purpose

    This prevents orphan records and keeps data relationships consistent and safe.
  3. Final Answer:

    To ensure relationships between tables remain consistent -> Option B
  4. Quick Check:

    Referential integrity = consistent relationships [OK]
Quick Trick: Referential integrity means keeping table links correct [OK]
Common Mistakes:
MISTAKES
  • Confusing referential integrity with performance optimization
  • Thinking it creates backups
  • Assuming it stores data efficiently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes