Improve company productivity with a Business Account.Sign Up

x
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

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