Let's say that I have the following 3 tables or quieries that I want to pull data from:
Table1:
--------
[newproject_name, new_cost]
proj1 10
proj2 11
Table2:
--------
[continuingproject_name, continuing_cost]
proj3 8
proj4 7
Table3:
--------
[project_name, savings]
proj1 5
proj2 6
proj3 4
proj4 3
I want to combine these using a union query to produce this:
newquery
----------
[name ,new_cost ,continuing_cost ,savings]
proj1 10 5
proj2 11 6
proj3 8 4
proj4 7 3
Any help would be greatly appreciated. I know how to combine 2 tables using UNION, but not more than 2.
Table1:
--------
[newproject_name, new_cost]
proj1 10
proj2 11
Table2:
--------
[continuingproject_name, continuing_cost]
proj3 8
proj4 7
Table3:
--------
[project_name, savings]
proj1 5
proj2 6
proj3 4
proj4 3
I want to combine these using a union query to produce this:
newquery
----------
[name ,new_cost ,continuing_cost ,savings]
proj1 10 5
proj2 11 6
proj3 8 4
proj4 7 3
Any help would be greatly appreciated. I know how to combine 2 tables using UNION, but not more than 2.