View Single Post

   
  #10 (permalink)  
Old 02-28-2008, 10:46 AM
Stefano Perna
 
Posts: n/a
Default Re: how many of a kind

subtenante ha scritto:

>
> Ask MySQL exactly how you asked us :
>
> SELECT COUNT(product_name)
> FROM products
>
> where is_active=1
>
> GROUP BY cat_id ORDER BY cat_id




one moment:
is_active is in the categories table (not in products)!
Reply With Quote