nerdexam
Oracle

1Z0-047 · Question #146

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…

The correct answer is D. All the statements up to the ALTER TABLE statement would be committed and the outcome of the. See the full explanation below for the reasoning.

Question

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 exist What would be the outcome?

Options

  • AAll the statements before the DELETE statement would be rolled back.
  • BAll the statements before the DELETE statement would be implicitly committed within the session.
  • CAll the statements up to the ALTER TABLE statement would be committed and the outcome of
  • DAll the statements up to the ALTER TABLE statement would be committed and the outcome of the

How the community answered

(49 responses)
  • A
    10% (5)
  • B
    4% (2)
  • C
    14% (7)
  • D
    71% (35)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice