QuestionQ165

VerifiedUsing the SET Operators

Refer to the exhibit and review the structures of the SALES, PRODUCTS, and COSTS tables.

Question Image

Review the following SQL statements:

Question Image

Which statement is true about the compound query above?

Explanation

Oracle evaluates these equal-precedence set operators from left to right. INTERSECT returns product IDs common to PRODUCTS and SALES, and MINUS removes product IDs found in COSTS; therefore, the result contains products that were sold but have no cost recorded.

Learn more

Community Discussion

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