Evaluate the following statement:INSERT ALL -WHEN order_total < 10000 THENINTO small_orders -WHEN order_total > 10000 AN

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

Evaluate the following statement:INSERT ALL -WHEN order_total < 10000 THENINTO small_orders -WHEN order_total > 10000 AN

Post by answerhappygod »

Evaluate the following statement:INSERT ALL -WHEN order_total < 10000 THENINTO small_orders -WHEN order_total > 10000 AND order_total < 20000 THENINTO medium_orders -WHEN order_total > 2000000 THEN -INTO large_orders -SELECT order_id, order_total, customer_idFROM orders;Which statement is true regarding the evaluation of rows returned by the subquery in theINSERT statement?

A. They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.
B. They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.
C. They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.
D. The INSERT statement would give an error because the ELSE clause is not present for support in case none of the WHEN clauses are true.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This question has been solved and has 1 reply.

You must be registered to view answers and replies in this topic. Registration is free.


Register Login
 
Post Reply