View Single Post
Old 08-18-2004, 04:44 AM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
I'm not sure it's possible to do that in MySQL. It sounds like you need some sub-selects, which if memory serves me don't exist in MySQL. Maybe in the beta versions it does. I know PostgreSQL supports them.

Basically, you'd need to query using the count function inside a query that returns all the categories.
__________________
GitS
Belisarius is offline   Reply With Quote