QuestionQ210

VerifiedUsing the SET Operators

View the exhibit and review the data in the PROMOTIONS table.

Question Image

You must display every promo category that does not have discount in its subcategory. Which two SQL statements produce the required result?

Choose two
Explanation

MINUS between the full list of categories and the categories carrying a 'discount' subcategory isolates categories with no discount entry, and because 'discount' and 'general advt' are the only two subcategory values in the PROMOTIONS table, INTERSECT of the full category list with the categories having a subcategory not equal to 'discount' yields the identical result, so both the MINUS-based and INTERSECT-based queries produce the categories lacking any discount subcategory.

Learn more

Community Discussion

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