Depending on platform - something like: SELECT sum(amount) as sales, day(transdate) + month(transdate) + year(transdate) FROM orders GROUP BY day(transdate), month(transdate), year(transdate)
-Cameron On Tue, 1 Mar 2005 20:11:39 -0600, Raymond Camden <[EMAIL PROTECTED]> wrote: > I want to count the number of orders per day, where the datetime > property has, obviously, a date and time. I want to ignore the time > and just get a sum based on date. I know this is simple, but it's been > a real long day. > > -- > ======================================================================= > Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com) > > Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) > > Email : [EMAIL PROTECTED] > Blog : ray.camdenfamily.com > Yahoo IM : cfjedimaster > > "My ally is the Force, and a powerful ally it is." - Yoda > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:148833 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
