DEVFYI - Developer Resource - FYI

Explain UNION,MINUS,UNION ALL, INTERSECT ?

ORACLE Interview Questions and Answers (Part 5)


(Continued from previous question...)

851. Explain UNION,MINUS,UNION ALL, 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 queryUNION ALL - returns all rows selected by either query, including all duplicates.

(Continued on next question...)

Other Interview Questions