• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

Union Querry

I am not very familiar with a union query (I do most my query in the design section).

I have two query I want to connect is a union. Is there a way to include all the fields, or do I have to write each one out? Maybe using a *?

Thanks!
0
cansevin
Asked:
cansevin
1 Solution
 
Rey Obrero (Capricorn1)Commented:
as long as the number of fields(columns) are the same you will be ok.

select * from t1
union all
select * from t2
0
 
Dale FyeCommented:
as long as the number (AND DATA TYPES) of the fields are the same
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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