Solved

Merge 3 Exact Tables into One Table in Access

Posted on 2013-10-25
2
397 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
Comment Utility
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
Comment Utility
THANK YOU!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.​
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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.

772 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

10 Experts available now in Live!

Get 1:1 Help Now