nerdexam
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

1Z0-082 question #110 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)
  • A
    8% (2)
  • B
    4% (1)
  • C
    4% (1)
  • D
    83% (20)

Topics

#DISTINCT keyword#SELECT syntax#ORDER BY#compound queries

Community Discussion

No community discussion yet for this question.

Full 1Z0-082 Practice