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
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)- A3% (1)
- B10% (3)
- C83% (24)
- D3% (1)
Community Discussion
No community discussion yet for this question.
