Bird
0
0

Which of the following is the correct syntax to drop a view named customer_orders?

easy📝 Syntax Q3 of 15
SQL - Views
Which of the following is the correct syntax to drop a view named customer_orders?
ADROP TABLE customer_orders;
BDELETE VIEW customer_orders;
CREMOVE VIEW customer_orders;
DDROP VIEW customer_orders;
Step-by-Step Solution
Solution:
  1. Step 1: Recall syntax for dropping a view

    The correct SQL command to remove a view is DROP VIEW followed by the view name.
  2. Step 2: Evaluate each option

    DROP VIEW customer_orders; uses DROP VIEW which is correct. DROP TABLE deletes tables, DELETE VIEW and REMOVE VIEW are invalid commands.
  3. Final Answer:

    DROP VIEW customer_orders; -> Option D
  4. Quick Check:

    DROP VIEW syntax = C [OK]
Quick Trick: Use DROP VIEW to delete a view, not DROP TABLE [OK]
Common Mistakes:
MISTAKES
  • Using DROP TABLE instead of DROP VIEW
  • Trying DELETE VIEW which is invalid
  • Using REMOVE VIEW which does not exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes