SELECT *, (SELECT COUNT(*) FROM PHOTOPICTURES a,PHOTOCATEGORIES b WHERE a.PIC_CAT = b.CAT_ID) AS PIC_COUNT FROM PHOTOCATEGORIES ORDER BY CAT_NAME
can any1 tell me what's wrong with the above query as
SELECT *, (1) AS PIC_COUNT FROM PHOTOCATEGORIES ORDER BY CAT_NAME <----this gives a result
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.