Let's say that your have two very simple queries based on two Tables
Table 1 (for 2018)
- Name
- Balance
Table 2 (for 2019)
- Name
- Balance
So, change the first query so that it looks something like this:
Code:
SELECT [Name], [Balance] as Balance_2018, 0 as Balance_2019
FROM Table1
and the second query like this:
Code:
SELECT [Name], 0 as Balance_2018, [Balance] as Balance_2019
FROM Table2
Now, since both queries have the EXACT same number of fields in the EXACT same order, the UNION query between the two should work well.