Situation: I need distinct results from two tables, that both have duplicates. I would like to know if I should combine UNION and DISTINCT.
Example 1 - Only use distinct
SELECT DistinctValue
FROM Table1
UNION
SELECT DistinctValue
FROM Table2
Example 2 - Combine distinct and union
SELECT DISTINCT DistinctValue
FROM Table1
UNION
SELECT DISTINCT DistinctValue
FROM Table2
The results are the same, but are there any performance differences?