I wonder... what database are you using?  SQL server has always been pretty
helpful with that error....

-----Original Message-----
From: daniel kessler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 12, 2005 2:28 PM
To: CF-Talk
Subject: Re: query sum or group by

oh thank you thank you thank you and I really mean it this time - thank you.

I am so sick of seeing that error.  This puts me back to just trying ot
figure the functionality.  yes!

oh man, thanks.

>Here's the rule. It's pretty simple.
>
>You can not select aggregate function (sum, count, max, min, etc)
>columns and regular columns without using group by. Every column in
>the select statement must either have an aggregate function, or must
>be in the group by clause. What you're trying to do above will work if
>you add food_item and pkg_size to the group by, and total the gs_price
>column.
>
>On 7/12/05, daniel kessler <[EMAIL PROTECTED]> wrote:
>>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4:211655
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

Reply via email to