nerdexam
Oracle

1Z0-061 · Question #300

View the exhibit and examine the description for the SALES and CHANNELS tables. You issued the following SQL statement to insert a row in the SALES table: INSERT INTO sales VALUES (23, 2300…

The correct answer is A. The statement will execute and the new row will be inserted in the SALES table. See the full explanation below for the reasoning.

Question

View the exhibit and examine the description for the SALES and CHANNELS tables. You issued the following SQL statement to insert a row in the SALES table:

INSERT INTO sales VALUES (23, 2300, SYSDATE, (SELECT channel_id FROM channels WHERE channel_desc='Direct Sales'), 12, 1, 500); Which statement is true regarding the execution of the above statement?

Options

  • AThe statement will execute and the new row will be inserted in the SALES table.
  • BThe statement will fail because subquery cannot be used in the VALUES clause.
  • CThe statement will fail because the VALUES clause is not required with subquery.
  • DThe statement will fail because subquery in the VALUES clause is not enclosed with in single

How the community answered

(36 responses)
  • A
    81% (29)
  • B
    11% (4)
  • C
    3% (1)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-061 Practice