A simple single-table view permits deletion of the sales-staff rows it exposes from the underlying EMPLOYEES table. WITH CHECK OPTION prevents inserts or updates through the view that would cause a row to no longer satisfy job_id LIKE 'SA_%'; it therefore does not permit changing a job ID to any arbitrary value. Because department_id is NOT NULL and is omitted from the view, the view cannot be used to insert a new EMPLOYEES row. A multitable INSERT may use a view in its source subquery, allowing the view’s employee IDs, last names, and job IDs to be selected for insertion into target tables.
Community Discussion