queryfrom two tables

G

Guest

I have two tables with basically the same fields: name, account, total
salary..., but one is for faculty and the other for staff. I am trying to do
a query to do a report, in which I want to view people from the two tables
under a certain account number. Can this be done?

When I created the query it seems as if I can only point to one table under
one field.
 
R

Rick B

Yes, create a UNION query. The help files will tell you how.

You may also want to think about if your table structure is correct. Could
you combine the tables into one employee table and add a "type" field where
you select faculty or staff? this scenario may not make sense if your table
structures are different, but something to consider.

Creating and saving that UNION query will let you pull data from both tables
when you need it.
 
G

Guest

Thank you, that was very helpful.

Rick B said:
Yes, create a UNION query. The help files will tell you how.

You may also want to think about if your table structure is correct. Could
you combine the tables into one employee table and add a "type" field where
you select faculty or staff? this scenario may not make sense if your table
structures are different, but something to consider.

Creating and saving that UNION query will let you pull data from both tables
when you need it.
 

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

Top