QuestionQ235

VerifiedCreating Other Schema Objects

Evaluate the following SQL statements:

Exhibit:

Question Image

You execute the following command to create a view that displays the IDs and last names of the sales staff in the organization.

Exhibit:

Question Image

Which two statements are true about the view above?

Choose two
Explanation

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.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!