Oracle
1Z0-047 · Question #68
Evaluate the following statement: INSERT ALL WHEN order_total < 10000 THEN INTO small_orders WHEN order_total > 10000 AND order_total < 20000 THEN INTO medium_orders WHEN order_total > 2000000 THEN…
The correct answer is A. They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any. See the full explanation below for the reasoning.
Question
Evaluate the following statement:
INSERT ALL WHEN order_total < 10000 THEN INTO small_orders WHEN order_total > 10000 AND order_total < 20000 THEN INTO medium_orders WHEN order_total > 2000000 THEN INTO large_orders SELECT order_id, order_total, customer_id FROM orders; Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?
Options
- AThey are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any
- BThey are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated
- CThey are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated
- DThe INSERT statement would give an error because the ELSE clause is not present for support in case
How the community answered
(33 responses)- A73% (24)
- B3% (1)
- C9% (3)
- D15% (5)
Community Discussion
No community discussion yet for this question.