Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
Understanding core SQL Data Definition Language (DDL) verbs is foundational. This item checks whether you recognize the canonical syntax for defining a view. Views are named query definitions that present virtual tables to users and applications.
Given Data / Assumptions:
Concept / Approach:
The SQL statement to define a view is CREATE VIEW view_name AS SELECT .... This is consistent across SQL dialects, even if options differ. Therefore the assertion that the statement used is CREATE VIEW is correct. Variations like CREATE OR REPLACE VIEW or WITH CHECK OPTION refine behavior but do not alter the fundamental DDL verb.
Step-by-Step Solution:
Verification / Alternative check:
Consult any major vendor documentation; each provides CREATE VIEW with dialect-specific options (e.g., security barriers, schemabinding, column lists), but the verb remains CREATE VIEW.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing vendor options with the standard verb; assuming that inability to execute (due to permissions) changes the correctness of the statement name.
Final Answer:
Correct
Discussion & Comments