Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a Query for 2 tables

Status
Not open for further replies.

lizray

Programmer
May 14, 2008
126
AU
I have 2 tables containing fields for Date and Amount, each relates to a different source and must be kept separate. Sometimes I want a combined result sorted by date. I would rather not use a third table for the combnination.How do I set up the query to combine the tables?
 
An UNION query ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Union query seems the way to go, from what I understand. It puts all the data from one table first, then the second table AFTER the fields from the first.

I have no idea how to actually DO one of these, but I'm sure it's easy to find.
 
I am not very familiar with SQL, but problem is now solved,Many thanks PHV.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top