Query and Total Sum

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

Guest

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
 
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

Similar Threads

Combination of Field not empty 2
Running Total 1
Querying from a form 1
Problem with a query 1
Help 1
How do I select the maximum of a subset of records? 3
Cumulative Query 3
Query to display highest totals 1

Back
Top