Union queries must have the same number of fields returned, and, sometimes
the same data types for each field. You can cheat though. For example in
the
SQL below, both return 3 fields; however, the second select statement will
return ASA2 for the htn field. Actually you don't need the 'AS htn' part
at
all. Just make sure that the first Select statement has what you want to
see
in the headings.
SELECT Asa.Month, Asa.Year, Asa.htn
FROM Asa
UNION ALL
SELECT Asa.2Month, Asa2.Year, "ASA2" AS htn
FROM Asa2
ORDER BY 1, 2;
Also there is a difference between UNION and UNION ALL. Plain old UNION
will
remove any duplicate records. This takes extra effort and time. If you
aren't
worried about duplicates or know for sure that there can't be any, a UNION
ALL is faster.