QuestionQ254

VerifiedRestricting and Sorting Data

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

Using the PROMOTIONS table, you need to determine the names and costs of all promotions conducted on 'TV' and 'internet' that ended during the interval from 15th March '00 to 15th October '00.

Which two queries would produce the required result?

Question Image

Choose two
Explanation

IN ('TV', 'internet') or the grouped condition PROMO_CATEGORY = 'TV' OR PROMO_CATEGORY = 'internet' correctly limits the results to those two categories. BETWEEN '15-MAR-00' AND '15-OCT-00' is inclusive, as is the equivalent pair of conditions using >= and <=, so both forms include every promotion ending within the required date interval.

Community Discussion

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