Now that I had a nap and some time to think about it... The order of columns specified in a GROUP BY clause is not important. The GROUP BY is only a "list" of column with no specific implied nesting of levels.
It means, "calculate a group-based function, COUNT(), SUM(), etc, for each *unique* combination of the *values* of the columns specified in the GROUP BY" M!ke -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 11:54 AM To: CF-Community Subject: Re: dumb sql question Hmm, so I thought that when you did GROUP BY A, B, C that it _first_ grouped by A, then B, etc. So if A is the day of the month, it would group all items with the same Day of Month, then group by B. Or am i wrong? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:148907 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=11502.10531.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54