Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
SELECT  B.cat_name as [cat_name],B.articles_count as [articles_count], B.cat_ID as [cat_ID],SUM(A.article_visit) AS [Article_Visit] FROM article_list A LEFT JOIN	category B ON A.cat_ID = B.cat_ID WHERE	A.article_status = 1 AND B.article_allow = 1 GROUP BY(B.cat_name,B.articles_count, B.cat_ID);

error:
Incorrect syntax near ','.

please help me how can i solve this.

Thanks in advance
Posted
Updated 20-Jun-11 19:44pm
v2

1 solution

TRY THIS


GROUP BY B.cat_name,B.articles_count, B.cat_ID ;
 
Share this answer
 
v2
Comments
rahul dev123 21-Jun-11 1:54am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900