Oracle
1Z0-061 · Question #270
Examine the structure of the PROMOTIONS table: The management wants to see a report of unique promotion costs in each promotion category. Which query would achieve the required result?
The correct answer is D. SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1. See the full explanation below for the reasoning.
Question
Examine the structure of the PROMOTIONS table:
The management wants to see a report of unique promotion costs in each promotion category. Which query would achieve the required result?
Exhibit
Options
- ASELECT DISTINCT promo_cost, promo_category FROM promotions;
- BSELECT promo_category, DISTINCT promo_cost FROM promotions;
- CSELECT DISTINCT promo_cost, DISTINCT promo_category FROM promotions;
- DSELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;
How the community answered
(53 responses)- A9% (5)
- B2% (1)
- C6% (3)
- D83% (44)
Community Discussion
No community discussion yet for this question.
