Forums
This topic is locked
GROUP BT isnt working?
Posted 12 Oct 2004 18:06:06
1
has voted
12 Oct 2004 18:06:06 Simon Bloodworth posted:
my sql is SELECT product_category
FROM product GROUP BY product_category
and i get the error:
you tried to execute a query that does not include the specified expression 'product_category' as part of an aggregate function.
What the hell does that mean?!
I have the same query on another age and it works fine.
?Simon
Replies
Replied 15 Nov 2004 17:30:32
15 Nov 2004 17:30:32 myke black replied:
this usually happens if you misspell the field name - make sure that you have got the correct spelling of product_category after the group by part of the SQL statement. you might have spelled it product_catagory by mistake on that page, but spelled it correctly on the other pages.
Replied 15 Nov 2004 19:33:29
15 Nov 2004 19:33:29 Simon Bloodworth replied:
cheers for this - will have a look.