Oracle
1Z0-071 · Question #33
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 ORDERJDs 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 ORDERJDs 1 and 2.
- BThe ORDERS_MASTER table would contain the ORDERJDs 1,2 and 3.
- CThe ORDERS_MASTER table would contain the ORDERJDs 1,2 and 4.
- DThe ORDERS MASTER table would contain the ORDER IDs 1,2,3 and 4.
How the community answered
(43 responses)- A7% (3)
- B5% (2)
- C70% (30)
- D19% (8)
Community Discussion
No community discussion yet for this question.
