Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER Primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
HIRE_DATE DATE
You issue these statements:
CREATE table new_emp ( employee_id NUMBER, name VARCHAR2(30));
INSERT INTO new_emp SELECT employee_id , last_name from employees;
Savepoint s1;
UPDATE new_emp set name = UPPER(name);
Savepoint s2;
Delete from new_emp;
Rollback to s2;
Delete from new_emp where employee_id =180;
UPDATE new_emp set name = ‘James’;
Rollback to s2;
UPDATE new_emp set name = ‘James’ WHERE employee_id =180;
Rollback;
At the end of this transaction, what is true?
A.
Your last update fails to update any rows because employee ID 180 was already deleted.
B.
You have no rows in the table.
C.
You cannot roll back to the same savepoint more than once.
D.
You have an employee with the name of James.
Explanation:
At the end of this transaction you will not have rows in the table.