nerdexam
Oracle

1Z0-047 · Question #59

View the Exhibit and examine the structure of the ORDERS table: The ORDER_ID column has the PRIMARY KEY constraint and CUSTOMER_ID has the NOT NULL constraint. No default values have been specified…

The correct answer is C. It would not execute successfully because the ORDER_TOTAL column is not specified in the SELECT. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the ORDERS table:

The ORDER_ID column has the PRIMARY KEY constraint and CUSTOMER_ID has the NOT NULL constraint. No default values have been specified for any of the columns. Evaluate the following statement:

INSERT INTO (SELECT order_id,order_date,customer_id FROM ORDERS WHERE order_total = 1000 WITH CHECK OPTION) VALUES (13, SYSDATE, 101); What would be the outcome of the above INSERT statement?

Exhibit

1Z0-047 question #59 exhibit

Options

  • AIt would execute successfully and the new row would be inserted into a new temporary table created
  • BIt would execute successfully and the ORDER_TOTAL column would have the value 1000 inserted
  • CIt would not execute successfully because the ORDER_TOTAL column is not specified in the SELECT
  • DIt would not execute successfully because all the columns from the ORDERS table should have been

How the community answered

(17 responses)
  • B
    6% (1)
  • C
    82% (14)
  • D
    12% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice