Query

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

Guest

Hi:

I have 2 tables that have common structure. Both have 2 colums, (1) Account
Title
(2) Amount.

I want to sum the Amount colums of the 2 tables. How will i do that. Thanks.
 
Create a Union query similar to this below

SELECT Sum(Table1.Amount) AS SumOfAmount FROM Table1;
UNION SELECT Sum(Table2.Amount) AS SumOfAmount FROM Table2;

Create another query based on the Union query above and select the
SumOfAmount column. Click on the totals icon on the toolbar and change Group
By to Sum.
Run the query.
 

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