Won't your group be broken though if two sales occur on the same day of the month?
On Tue, 1 Mar 2005 18:33:54 -0800, Cameron Childress <[EMAIL PROTECTED]> wrote: > 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 > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:148864 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