QuestionQ232

VerifiedRestricting and Sorting Data

You are a database administrator at ABC.com. Study the exhibit carefully.

Exhibit -

Question Image

Using the PROMOTIONS table, you must display the names of all promotions conducted after January 1, 2001, beginning with the most recent promotion.

Which query produces the required result?

Choose two
Explanation

PROMO_BEGIN_DATE is the date that must be used for descending sorting to place the latest promotion first. Oracle permits a select-list alias in an ORDER BY clause, so ORDER BY "START DATE" DESC is valid when that alias represents PROMO_BEGIN_DATE. Oracle also permits a select-list position in ORDER BY; position 2 is PROMO_BEGIN_DATE.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!