UNION, UNION ALL AND INTERSECT
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