Union Queries

spatel

New Member
Joined
Sep 22, 2004
Messages
14
I need to link three quiries together and display their ouput in a report.

However, some field names are different so how do you write a union query that'll link all 3 query.

I think you have to create an alias and use the alieas to write the quiery, but I am not sure..

Can anyone help..
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Why do you need a UNION query?

Do the fields in the queries/tables hold the same type of data but just have different names?
 
Upvote 0
Well, I though you have to create a UNION qry in order to link the queries together. Don't you

The data in the fields is same, so thats shouldn't matter..
 
Upvote 0
Is there a common field that links the queries? eg ID

From help

UNION

Creates a union query, which combines the results of two or more independent queries or tables.
 
Upvote 0

Forum statistics

Threads
1,221,814
Messages
6,162,135
Members
451,744
Latest member
outis_

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top