Hi,
I am having a problem in sorting category, here is what i am doing..
SELECT S.subcat_name, count(S.subcat_ id) AS total FROM subcategory S LEFT OUTER JOIN files F ON F.subcat_id=S.s ubcat_id GROUP BY F.subcat_id ORDER BY S.subcat_name ASC
this SQL query will result like this
Arts (1) (this is empty but still showing 1)
Celebrity(5)
I want to display result like this http://tinyurl.com/yt5z78
Please help me to correct this query and also suggest me how to display results just like the below sample shows you..
A
ABC (1)
DEC (55)
B
XYZ (23)
JOO (0)
Thanks
I am having a problem in sorting category, here is what i am doing..
SELECT S.subcat_name, count(S.subcat_ id) AS total FROM subcategory S LEFT OUTER JOIN files F ON F.subcat_id=S.s ubcat_id GROUP BY F.subcat_id ORDER BY S.subcat_name ASC
this SQL query will result like this
Arts (1) (this is empty but still showing 1)
Celebrity(5)
I want to display result like this http://tinyurl.com/yt5z78
Please help me to correct this query and also suggest me how to display results just like the below sample shows you..
A
ABC (1)
DEC (55)
B
XYZ (23)
JOO (0)
Thanks
Comment