slecting all fields for a union query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I have two queries i am unioning... is there a simple way to get all the
fields without having to type them all... something like select *.* from
[query a] union all *.* from [query b]
 
Hi Jeanne,

You can use:

SELECT * FROM [query a]
UNION
SELECT * FROM [query B];

Or, you can use:

TABLE [query a]
UNION
TABLE [query b];

In either case, it will be important that the columns (fields) in the source
queries or tables be in the proper order, and also that there are the same
number of them.

HTH, Ted Allen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top