nerdexam
Oracle

1Z0-047 · Question #61

View the Exhibit and examine the structure of the ORDERS and ORDER_ITEMS tables. Evaluate the following SQL statement: SELECT oi.order_id, product_id, order_date FROM order_items oi JOIN orders o…

The correct answer is D. The statement would not execute because the column part of the USING clause cannot have a qualifier. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the ORDERS and ORDER_ITEMS tables. Evaluate the following SQL statement:

SELECT oi.order_id, product_id, order_date FROM order_items oi JOIN orders o USING(order_id); Which statement is true regarding the execution of this SQL statement?

Exhibit

1Z0-047 question #61 exhibit

Options

  • AThe statement would not execute because table aliases are not allowed in the JOIN clause.
  • BThe statement would not execute because the table alias prefix is not used in the USING clause.
  • CThe statement would not execute because all the columns in the SELECT clause are not prefixed with
  • DThe statement would not execute because the column part of the USING clause cannot have a qualifier

How the community answered

(45 responses)
  • A
    7% (3)
  • B
    4% (2)
  • C
    18% (8)
  • D
    71% (32)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice