nerdexam
Oracle

1Z0-061 · Question #268

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…

The correct answer is D. SELECT promo_name, promo_cost/((promo_end_date-promo_begin_date)/7) FROM promotions. See the full explanation below for the reasoning.

Question

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 promotion done to l date. Which query would achieve the required result?

Exhibit

1Z0-061 question #268 exhibit

Options

  • ASELECT promo_name, promo_cost/promo_end_date-promo_begin_date/7 FROM promotions;
  • BSELECT promo_name, (promo_cost/promo_end_date-promo_begin_date)/7 FROM promotions;
  • CSELECT promo_name, promo_cost/(promo_end_date-promo_begin_date/7) FROM promotions;
  • DSELECT promo_name, promo_cost/((promo_end_date-promo_begin_date)/7) FROM promotions;

How the community answered

(28 responses)
  • A
    7% (2)
  • B
    4% (1)
  • C
    4% (1)
  • D
    86% (24)

Community Discussion

No community discussion yet for this question.

Full 1Z0-061 Practice