Solved

Merge 3 Exact Tables into One Table in Access

Posted on 2013-10-25
2
410 Views
Last Modified: 2013-10-25
This is probably the simpliest of questions.  I have 3 tables that are the exact same, just with different data in them.  I need to combine the three into one table.  I do not know how to do this and I continue to get a syntax error in FROM clause.  Here is what I have done.
Created the following append query:

INSERT INTO [EQ ONLY ALL DATA]
SELECT *
FROM [EQ ONLY THE DATA]

INSERT INTO [EQ ONLY ALL DATA]
SELECT *
FROM [EQ ONLY AU & IT & MX & TA & PR]

INSERT INTO [EQ ONLY ALL DATA]
SELECT *
FROM [EQ ONLY CN,CL,HK,SA,MO,PT,SW,RO]
0
Comment
Question by:kateebebe
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39601581
use a union query, this will create the table   [EQ ONLY ALL DATA]


SELECT A.* Into [EQ ONLY ALL DATA]
From
(
SELECT *
FROM [EQ ONLY THE DATA]
Union ALL
SELECT *
FROM [EQ ONLY AU & IT & MX & TA & PR]
Union All
SELECT *
FROM [EQ ONLY CN,CL,HK,SA,MO,PT,SW,RO]
) As A
0
 

Author Closing Comment

by:kateebebe
ID: 39601592
THANK YOU!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question