Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
How do I sum all Sales Receipts I have for a selected date range? |
Author |
Message |
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-03-28 08:03:01 |
You can run this query:
SELECT SalesReceiptLine.CustomerRefFullName, Sum(SalesReceiptLine.TotalAmount) AS SumOfTotalAmount FROM SalesReceiptLine unoptimized WHERE (((SalesReceiptLine.TxnDate)>={d'2004-01-01'})) and (((SalesReceiptLine.TxnDate)<{d'2005-01-01'})) GROUP BY SalesReceiptLine.CustomerRefFullName
and change the greater than or equal (>=) and the less than (<) dates to the date range you wish to use. |
|
|
|
|