Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Combining two tables into one in the same database

How do I combine two tables (trans and trans1) that have the same structure into one table named trans using SQL statements? These tables are in the same MS Access database.
TIA
0
TrueBlue
Asked:
TrueBlue
2 Solutions
 
MelMcCommented:
Select *
FROM trans
UNION ALL
Select *
From trans1
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
If you truly want to combine them:

INSERT INTO trans SELECT * FROM trans1

Otherwise, if you just want to "view" them, use the UNION as suggested by MelMc
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now