Skip to content

VIEW

CREATE VIEW employee_view AS
SELECT employee_ID, first_name, last_name
FROM employees;
Query OK, 0 rows affected (0.00 sec)

The VIEW employee_view was created to simplify querying. The view includes employee_ID, first_name, and last_name from the employees table. You now query employee_view instead of the employees table for these specific fields.