ocp-1Z0-051 -10

10. View the Exhibit; examine the structure of the PROMOTIONS table.

 

Each promotion has a duration of at least seven days .

Your manager has asked you to generate a report,  which provides the weekly cost for each promotiondone to ldate.  

Which query would achieve the required result? 

A. SELECT promo_name, promo_cost/promo_end_date-promo_begin_date/7

FROM promotions;

B. SELECT promo_name,(promo_cost/promo_end_date-promo_begin_date)/7

FROM promotions;

C. SELECT promo_name, promo_cost/(promo_end_date-promo_begin_date/7)

FROM promotions;

D. SELECT promo_name, promo_cost/((promo_end_date-promo_begin_date)/7)

FROM promotions;

Answer: D

Answer analysis: double brackets

Feed Request : Report Provides Weekly Cost During Promotion Period

D, correct, in line with the meaning of the question.

ABC C syntax error

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325167457&siteId=291194637
10