QuestionQ25

VerifiedRestricting and Sorting Data

Refer to the exhibit and review the structure of the PROMOTIONS table.

You need to produce a report of all promotions from the PROMOTIONS table that meet these conditions:

  1. The promotion name must not start with 'T' or 'N'.
  2. The promotion must cost more than $20000.
  3. The promotion must have ended after 1st January 2001.

Which WHERE clause returns the required result?

Question Image

Explanation

Excluding promotion names that start with either T or N requires both predicates to be true: promo_name NOT LIKE 'T%' AND promo_name NOT LIKE 'N%'. The cost and end-date constraints must also be joined with AND, because every returned row must satisfy all three stated requirements.

Community Discussion

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