nerdexam
Oracle

1Z0-047 · Question #135

View the Exhibit and examine the data in ORDERS_MASTER and MONTHLYjDRDERS tables. Evaluate the following MERGE statement: MERGE INTO orders_master o USING monthly_orders m ON (o.order_id =…

The correct answer is C. The ORDERS_MASTER table would contain the ORDER_IDs 1, 2 and 4. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the data in ORDERS_MASTER and MONTHLYjDRDERS tables. Evaluate the following MERGE statement:

MERGE INTO orders_master o USING monthly_orders m ON (o.order_id = m.order_id) WHEN MATCHED THEN UPDATE SET o.order_total = m.order_total DELETE WHERE (m.order_total IS NULL) WHEN NOT MATCHED THEN INSERT VALUES (m.order_id, m.order_total); What would be the outcome of the above statement?

Exhibit

1Z0-047 question #135 exhibit

Options

  • AThe ORDERS_MASTER table would contain the ORDER_IDs 1 and 2.
  • BThe ORDERS_MASTER table would contain the ORDER_IDs 1, 2 and 3.
  • CThe ORDERS_MASTER table would contain the ORDER_IDs 1, 2 and 4.
  • DThe ORDERS_MASTER table would contain the ORDER_IDs 1, 2, 3 and 4.

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    10% (3)
  • C
    83% (24)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice