150. View the Exhibit and examine the data in the PROMOTIONS table.
You need to display all promo categories that do not have 'discount' in their subcategory.
Which two SQL statements give the required result? (Choose two.)
A. SELECT promo_category
FROM promotions
MINUS
SELECT promo_category
FROM promotions
WHERE promo_subcategory = 'discount';
所有promo_category 减去包含promo_subcategory = 'discount'的,符合题意。
B. SELECT promo_category
FROM promotions
INTERSECT 交集
SELECT promo_category
FROM promotions
WHERE promo_subcategory = 'discount';
所有promo_category 中包含promo_subcategory = 'discount'的,与题意相反。
C. SELECT promo_category
FROM promotions
MINUS
SELECT promo_category
FROM promotions
WHERE promo_subcategory <> 'discount';
所有promo_category 中减去不包含promo_subcategory = 'discount'的,与题意相反。
D. SELECT promo_category
FROM promotions
INTERSECT
SELECT promo_category
FROM promotions
MINUS 返回第一个查询有,第二个查询无的
which returns only unique rows returned by the first query but not by the second
INTERSECT 返回共同有的