Bird
0
0

What does the CREATE VIEW statement do in SQL?

easy📝 Conceptual Q1 of 15
SQL - Views
What does the CREATE VIEW statement do in SQL?
ADeletes a table from the database
BCreates a virtual table based on a SELECT query
CInserts data into a table
DUpdates data in a table
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of CREATE VIEW

    The CREATE VIEW statement defines a virtual table that shows data from one or more tables based on a SELECT query.
  2. Step 2: Compare options with the purpose

    Only Creates a virtual table based on a SELECT query describes creating a virtual table from a SELECT query. Other options describe different SQL commands.
  3. Final Answer:

    Creates a virtual table based on a SELECT query -> Option B
  4. Quick Check:

    CREATE VIEW purpose = virtual table [OK]
Quick Trick: CREATE VIEW makes a virtual table from a SELECT query [OK]
Common Mistakes:
MISTAKES
  • Confusing CREATE VIEW with CREATE TABLE
  • Thinking it modifies data
  • Assuming it deletes tables

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes