Bird
0
0

Which condition must be true for a SQL view to be updatable?

easy📝 Conceptual Q1 of 15
SQL - Views
Which condition must be true for a SQL view to be updatable?
AThe view must include GROUP BY clauses
BThe view must be based on a single table without aggregate functions
CThe view must use UNION to combine multiple tables
DThe view must contain DISTINCT keyword
Step-by-Step Solution
Solution:
  1. Step 1: Understand updatable view basics

    An updatable view allows changes to be made through it, which requires it to be based on a single table without aggregates or grouping.
  2. Step 2: Analyze each option

    Options A, C, and D include grouping, combining tables, or distinct filtering, which prevent updates through the view.
  3. Final Answer:

    The view must be based on a single table without aggregate functions -> Option B
  4. Quick Check:

    Updatable view condition = single table, no aggregates [OK]
Quick Trick: Updatable views come from one table without grouping or aggregates [OK]
Common Mistakes:
MISTAKES
  • Thinking views with GROUP BY are updatable
  • Assuming UNION views can be updated
  • Believing DISTINCT views allow updates

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes