Is the error a case-sensitive difference between two tables? This is the mistake I most often saw.
If so, compare the offensive results table with the good old Latin1_General_CI_AS or others, which is most suitable.
For example, if table 1 is case sensitive, and you want to match both tables as if they were case insensitive:
SELECT Col1 COLLATE Latin1_General_CI_AS, Col2 COLLATE Latin1_General_CI_AS FROM Table1 UNION ALL SELECT Col1, Col2 FROM Table2
source share