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?
A.
SELECT DISTINCT promo_cost, promo_category FROM promotions;
B.
SELECT promo_category, DISTINCT promo_cost FROM promotions;
C.
SELECT DISTINCT promo_cost, DISTINCT promo_category FROM promotions;
D.
SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;
I think A is correct …why is it D?
As the question is for distinct promotion costs in each category and not distinct category.
a and d are both right
I think A is correct
A is wrong because, the results would be something like below
Promo_cost Promo_category
1000 A
2000 A
1000 B
2000 B
Even if it displays it as said above since the costs r unique in a specific category it shud b correct…