530 views
1 votes
1 votes
You executed the following SQL statements in the given order:
CREATE TABLE orders
(order_id NUMBER(3) PRIMARY KEY,
order_date DATE,
customer_idnumber(3));

INSERT INTO orders VALUES (100,'10-mar-2007’,222);
ALTER TABLE orders MODIFY order_date NOT NULL;
UPDATE orders SET customer_id=333;
DELETE FROM order;
The DELETE statement results in the following error:
ERROR at line 1: table or view does not exist
What would be the outcome?

A. All the statements up to the ALTER TABLE statement would be committed and the outcome of the UPDATE statement is retained uncommitted within the session.

B.All the statements before the DELETE statement would be implicitly committed within the session.

C.All the statements before the DELETE statement would be rolled back.

D.All the statements up to the ALTER TABLE statement would be committed and the outcome of UPDATE statement would be rolled back.

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
amitqy asked Jan 8, 2019
496 views
I got why query 2 is wrong. How do I approach to understand Query 1, is there a generic approach for solving questions like these which have no tables given?
1 votes
1 votes
1 answer
3
Shubhanshu asked Dec 24, 2018
1,307 views
According to me it should be – “Retrieve the names of all students with a lower rank, than all students with age < 18 ”