Oracle
1Z0-082 · Question #110
Examine the description of the PROMOTIONS table: You want to display the unique promotion costs in each promotion category. Which two queries can be used? (Choose two.)
The correct answer is D. SELECT promo_category, DISTINCT promo_cost FROM promotions ORDER BY 2; E. SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1. See the full explanation below for the reasoning.
SQL and PL/SQL
Question
Examine the description of the PROMOTIONS table:
You want to display the unique promotion costs in each promotion category. Which two queries can be used? (Choose two.)
Exhibit
Options
- ASELECT promo_cost, promo_category FROM promotions ORDER BY by 1;
- BSELECT DISTINCT promo_cost || ' in ` || DISTINCT promo_category FROM promotions ORDER
- CSELECT DISTINCT promo_category ||
has|| promo_cost AS COSTS FROM promotions - DSELECT promo_category, DISTINCT promo_cost FROM promotions ORDER BY 2;
- ESELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;
How the community answered
(24 responses)- A8% (2)
- B4% (1)
- C4% (1)
- D83% (20)
Topics
#DISTINCT keyword#SELECT syntax#ORDER BY#compound queries
Community Discussion
No community discussion yet for this question.
