You executed the following SQL statements in the given order:CREATE TABLE orders -(order_id NUMBER(3) PRIMARY KEY,order_

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

You executed the following SQL statements in the given order:CREATE TABLE orders -(order_id NUMBER(3) PRIMARY KEY,order_

Post by answerhappygod »

You executed the following SQL statements in the given order:CREATE TABLE orders -(order_id NUMBER(3) PRIMARY KEY,order_date DATE,customer_id number(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:ORA-00942: table or view does not existWhat would be the outcome?

A. All the statements before the DELETE statement would be rolled back.
B. All the statements before the DELETE statement would be implicitly committed within the session.
C. All the statements up to the ALTER TABLE statement would be committed and the outcome of UPDATE statement would be rolled back.
D. 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This question has been solved and has 1 reply.

You must be registered to view answers and replies in this topic. Registration is free.


Register Login
 
Post Reply