PL/SQL (MOSC)

MOSC Banner

UNION, UNION ALL AND INTERSECT

edited Jun 30, 2015 11:32AM in PL/SQL (MOSC) 4 commentsAnswered ✓

I have a query where I have to do union
For eg let me explain in this way to be clear the 1st query has 800 rows and 2nd query has 40 rows.

When I do UNION operation the result is 720

When I do UNION ALL operation the result is 840

When I do INTERSECT operation the result is 0

How is that possible?

The figure is an example actually the count is more than 900K so I cant even compare the output

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center