Bird
0
0

What is the main purpose of the CREATE VIEW statement in SQL?

easy📝 Conceptual Q11 of 15
SQL - Views
What is the main purpose of the CREATE VIEW statement in SQL?
ATo save a SELECT query as a virtual table
BTo permanently store data in the database
CTo delete rows from a table
DTo update existing records in a table
Step-by-Step Solution
Solution:
  1. Step 1: Understand what a view is

    A view is a virtual table created by saving a SELECT query.
  2. Step 2: Identify the purpose of CREATE VIEW

    CREATE VIEW stores the SELECT query so you can use it like a table without storing data.
  3. Final Answer:

    To save a SELECT query as a virtual table -> Option A
  4. Quick Check:

    CREATE VIEW = virtual table [OK]
Quick Trick: Views save SELECT queries as virtual tables [OK]
Common Mistakes:
MISTAKES
  • Thinking views store data physically
  • Confusing CREATE VIEW with INSERT or UPDATE
  • Assuming views delete or modify data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes