UNION versus SELECT DISTINCT and UNION ALL Performance
The difference between Union and Union all is that UNION ALL will not eliminate duplicate rows, instead it just pulls all rows from all tables fitting your query specifics and combines them into a table. A UNION statement effectively does a SELECT DISTINCT on the results set. If you select Distinct from Union All result … Read more