QuestionQ202

VerifiedUsing the Set Operators

Review the data in the ORDERS table:

Question Image

Review the data in the INVOICES table:

Question Image

Review the following query:

Question Image

Explanation

INTERSECT returns the distinct rows that occur in both result sets, comparing every selected column. The common (order_id, order_date) values are (1, NULL) and (4, 01-FEB-2019), so the result has two rows.

Community Discussion

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