Complete the code to select all columns from the view named 'employee_view'.
SELECT * FROM [1];The correct way to query all data from a view is to use its exact name after FROM. Here, the view is named 'employee_view'.
Complete the code to select the 'name' column from the view 'department_view'.
SELECT [1] FROM department_view;To select a specific column, use its exact column name. Here, 'name' is the correct column in the view.
Fix the error in the query to select all from the view 'sales_view'.
SELECT * FROM [1];The view name must be exact and without spaces or special characters. 'sales_view' is correct.
Fill both blanks to select the 'employee_id' and 'salary' columns from the view 'payroll_view'.
SELECT [1], [2] FROM payroll_view;
The correct column names in the view are 'employee_id' and 'salary'.
Fill all three blanks to select 'product_name', 'price', and 'stock' columns from the view 'inventory_view'.
SELECT [1], [2], [3] FROM inventory_view;
The columns in the view are 'product_name', 'price', and 'stock'. Use these exact names to query.