SELECT sum(saleTotal), saledate FROM sales GROUP BY saledate ----- Original Message ----- From: "mayo" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Wednesday, June 22, 2005 6:29 PM Subject: group by date, missing something
> I'm trying to do a group by date on an access db. > > I have a list of sales and want to group by month and year. I can't get > even a test run to work > > SQL below: > > SELECT MONTH(saleDate) AS theMonth, sum(saleTotal) as > dailyTotal > FROM sales > GROUP by theMonth > > Thx > > -- gil > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210302 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54