I have a database with two tables....one called categories and one called users. The categories table has a full list of business categories....t he users table has all the usual fields plus a category field which relates to the business category, i need to output the full list of category names from the categories table but also have how many rows there are in the users table for each category so...
builders (3)
web designers (4)
etc....
I can get them both to display seperately but i need them in 1 select statement if possible, or if there is another way that would be great.
Thanks for any help in advance.
builders (3)
web designers (4)
etc....
I can get them both to display seperately but i need them in 1 select statement if possible, or if there is another way that would be great.
Thanks for any help in advance.
Comment