I'm trying to do a full outer join of 3 tables and went off the logic of doing a two-table FOJ from here
So instead of doing a UNION on 3 queries (like I would with two tables), I made 7 queries to do a union of. I'm sure that's really inefficient, but it's my first time using Access.
Basically, I have a table with information about Actual Dollars spent. With specifications on what they were spent on (a number ID), who provided them (a number code), and who received them (a different number code). The other two tables have similar specifications, but one shows what is forecasted to be spent, and the other what was originally budgeted to be spent.
I was able to do a FOJ of two tables and get accurate numbers, but I'm having trouble doing a three-way FOJ.
There are cases where in the Actual Table, for a particular ID, Provider Code, and Receiver Code, there may be 3 records of dollars spent, while in the Forecast table, there may be 2, and in the Budget Table, 1. Essentially there's no guarantee that for each combination of Number ID, provider code, receiver code there are the same number of records in the three tables.
To make sure a record wouldn't multiply I made a query of the 3 tables individually and did the Group By function. And the 7 queries I made were the following:
Table 1: Actual inner join w/ Forecast & A inner join w/ B
Table 2: F inner join w/ B & F left outer join with A (Where A is Null)
Table 3: F inner join w/ A & F left outer join w/ B (Where B is Null)
Table 4: B inner join w/ A & B left outer join w/ F (Where F is Null)
Table 5: A left outer join w/ B (Where B is Null) & A left outer join w/ F (where F is null)
Table 6: B left outer join w/ A (Where A is Null) & B left outer join w/ F (where F is null)
Table 7: F left outer join w/ B (Where B is Null) & F left outer join w/ A (where A is null)
Could someone walk me through how to do a 3-Table full outer join? Is there any combination I'm missing? Unfortunately I can't post the tables or give too much specification because I'm not allowed to. I also am not able to alter the tables themselves, I basically only have read-only authorization.