Prev Question
Next Question

View the exhibits and examine the structures of the COSTS and PROMOTIONS tables.

Evaluate the following SQL statement:
SQL> SELECT prod_id FROM costs
WHERE promo_id IN (SELECT promo_id FROM promotions
WHERE promo_cost < ALL
(SELECT MAX(promo_cost) FROM promotions
GROUP BY (promo_end_datepromo_begin_date)));
What would be the outcome of the above SQL statement?

A.
It displays prod IDs in the promo with the lowest cost.

B.
It displays prod IDs in the promos with the lowest cost in the same time interval.

C.
It displays prod IDs in the promos with the highest cost in the same time interval.

D.
It displays prod IDs in the promos which cost less than the highest cost in the same time interval.

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *