Prev Question
Next Question

Evaluate the following command: CREATE TABLE employees

CREATE TABLE employees
(employee_id NUMBER(2) PRIMARY KEY,
last_name VARCHAR2(25) NOT NULL,
department_id NUMBER(2),
job_id VARCHAR2(8),
salary NUMBER(10,2));

You issue the following command to create a view that displays the IDs and last names of the sales staff in the organization:
CREATE OR REPLACE VIEW sales_staff_vu AS
SELECT employee_id, last_name,job_id
FROM employees
WHERE job_id LIKE ‘SA_%’ WITH CHECK OPTION;

Which statements are true regarding the above view? (Choose all that apply.)

A.
It allows you to insert details of all new staff into the EMPLOYEES table.

B.
It allows you to delete the details of the existing sales staff from the EMPLOYEES table.

C.
It allows you to update the job ids of the existing sales staff to any other job id in the EMPLOYEES table.

D.
It allows you to insert the IDs, last names and job ids of the sales staff from the view if it is used in multitable INSERT statements.

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *