QuestionQ244

VerifiedUsing the Set Operators

Examine the following statement:

Question Image

What is returned when it executes?

Explanation

INTERSECT returns the rows common to both query results and eliminates duplicates. Both SELECT statements produce the identical row (1, 'John', NULL), so the compound query returns one row; ORDER BY 3 validly sorts by the third selected column.

Community Discussion

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