Solved

Merge 3 Exact Tables into One Table in Access

Posted on 2013-10-25
2
405 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 119

Accepted Solution

by:
Rey Obrero 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now