OH sorry I forgot to mention. I wanted to count items in another table called "items". It has a column called "catID" and is equal to any given category in the category table.
Hello. I have a recursion type application and need to count the category database including subcategorys.
It is setup like this:
catID - PK
catName - varchar
parentID - integer
For example:
Accomodation (catID = 1) is a top level category (parentID = 0).
Shared Houses is a sub category of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.