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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining two columns into one output 1

Status
Not open for further replies.

rilkyn

Technical User
Jan 19, 2005
33
GB
I have two tables both containing two columns as follows


Batch Associate Table
Element
Table Name

Online Associate Table
Element
Table Name

I need to combine the two Table Name columns into a single column output so that I have a total list of all Table name records from both tables.

Is this possible?
 
Use a Unoion Query to achieve this
Code:
SELECT [FirstTableName].Field1, [FirstTableName].Field2
FROM [FirstTableName]
Union Select
[SecondTableName].Field1, [SecondTableName].Field2
FROM [SecondTableName];
Use Square brackets for field name also if the name includes spaces. It is a good habbit to avoid spaces in contol names
Eg: FirstName or First_Name

Zameer Abdulla
Visit Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top