QuestionQ129

VerifiedUsing Subqueries

Examine the description of the SALES1 table:

Question Image

SALES2 is a table with the same description as SALES1. Some sales data is duplicated in both tables.

You want to display rows from the SALES1 table that are not present in the SALES2 table. Which set operator produces the required output?

Explanation

Oracle SQL's MINUS set operator returns the distinct rows selected by the first query that are not selected by the second query. Thus, SALES1 MINUS SALES2 returns the rows that occur in SALES1 but not in SALES2.

Learn more

Community Discussion

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