DEVFYI - Developer Resource - FYI

Explain UNION, MINUS, UNION ALL and INTERSECT?

PL/SQL Interview Questions and Answers


(Continued from previous question...)

Explain UNION, MINUS, UNION ALL and INTERSECT?

INTERSECT - returns all distinct rows selected by both queries. MINUS - returns all distinct rows selected by the first query but not by the second. UNION - returns all distinct rows selected by either query UNION ALL - returns all rows selected by either query, including all duplicates.

(Continued on next question...)

Other Interview Questions