Using SQL Server 2012, what is the difference between using UNION and UNION of two queries that use DISTINCT? ie
SELECT Columns FROM A
UNION
SELECT Columns FROM B
versus
SELECT DISTINCT Columns FROM A
UNION
SELECT DISTINCT Columns FROM B
What is the difference between above queries?