moonfish07
Programmer
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
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