Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding tables together one under the other.

Status
Not open for further replies.

thepain009

Technical User
Oct 22, 2005
42
US
I have 4 tables with the same structure and I would like to add them together one below the other. Is there a simple way of doing that?

Thanks in advance,
 
yes...

SELECT * FROM TABLE1
UNION ALL
SELECT * FROM TABLE2
UNION ALL
SELECT * FROM TABLE3
UNION ALL
SELECT * FROM TABLE4


-DNG
 
Append query ?
Union query ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank you both. the UNION ALL statements helped me complete my task.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top