Complete the code to drop a view named 'employee_view'.
DROP [1] employee_view;To remove a view, you use DROP VIEW followed by the view name.
Complete the code to rename a view from 'old_view' to 'new_view'.
ALTER [1] old_view RENAME TO new_view;To rename a view, use ALTER VIEW old_name RENAME TO new_name;.
Fix the error in the code to modify the view 'sales_view' to select only sales above 1000.
CREATE OR REPLACE [1] sales_view AS SELECT * FROM sales WHERE amount > 1000;
To update a view, use CREATE OR REPLACE VIEW followed by the view name and new query.
Fill in the blank to drop a view only if it exists, avoiding errors if it does not.
DROP [1] IF EXISTS customer_view;Use DROP VIEW IF EXISTS view_name; to safely drop a view only if it exists.
Fill all three blanks to recreate a view named 'active_users' selecting users with status 'active'.
CREATE OR [1] [2] active_users AS SELECT * FROM users WHERE status [3] 'active';
Use CREATE OR REPLACE VIEW view_name AS SELECT ... WHERE column = value; to update or create a view.