Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
SQL views are commonly used to encapsulate queries, simplify security, and present tailored schemas to applications. The statement claims that an updatable view “has its own data,” which probes understanding of virtual versus materialized storage and how updates are propagated.
Given Data / Assumptions:
Concept / Approach:
Virtual views do not store their own data; they present results computed from base tables at query time. When a virtual view is updatable, DML statements on the view are translated into DML on the underlying tables (sometimes with INSTEAD OF triggers). Only materialized views persist physical data, but even then the source of truth is the base tables. Therefore, saying an “updatable view has its own data” is incorrect in the ordinary sense of SQL views.
Step-by-Step Solution:
Verification / Alternative check:
Execute INSERT/UPDATE on a simple updatable view; observe changes in the base table. Dropping the base table invalidates the view, revealing that the view has no independent data store.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing materialized views with ordinary views; assuming that because a view is updatable it must retain its own copy of data.
Final Answer:
Incorrect
Discussion & Comments