Assume saleshead.dbf contains the sales of one week only.
You should have a field which stores the sales total of a transaction, say SaleTotal.
Try this:
select cdow(dSaleStamp) as weekday, sum(SaleTotal) as DayTotal;
from saleshead;
group by weekday
The result would look like this
Weekday...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.