Query and Total Sum

L

Leonidas

I have a table with columns Date and Price. With
"SELECT table.date, table.price
FROM table
WHERE (((table.date)>#4/3/2007# And (table.date)<#4/30/2007#))
ORDER BY table.date;

I extract the data that I need. But I also need the total sum of the prices
I extracted.

Thanks
 
J

Jeff Boyce

Leonidas

Your query includes date and price. If you could have more than one price
per date, do you want the sum, per date, or the sum across dates?

If you want the sum across dates, something like:
SELECT Sum(table.price) as TotalPrice
FROM table
WHERE ...
would give you a sum.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

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