Getting a total from a query

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

Guest

I have several accounts with different $ amounts made to each account
throughout the month. How do I sum these totals so that I have 1 record for
each account with the total $.

1234567 $100
1234567 $200
1234567 $50.00
1234567 $75.00
 
ljp1215 said:
I have several accounts with different $ amounts made to each account
throughout the month. How do I sum these totals so that I have 1 record for
each account with the total $.

1234567 $100
1234567 $200
1234567 $50.00
1234567 $75.00

SELECT AccountNum, Sum(Amount) As MonthAmt
FROM thetable
GROUP BY AccountNum
WHERE DatePaid Between [start date] And [end date]
 

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

Back
Top