How to get the count of orgs under each city in Sql Server

 SELECT City, COUNT (OrgId) as NoofOrgs

FROM Organisation_Address oa

inner join Organisations org 

on

org.Id=oa.OrgId

Where City!='' and Org.IsActive=1 and org.IsApproved=1

GROUP BY City 

Comments

Popular posts from this blog

Implement virtualisation in kendo drop down list using jquery ajax in mvc, aspx page

How to Create trigger to Update the NoofOrgs Count under each category in Category Table based on Temp Table in Sql Server

How to Preview the image and download which is in base64string format in mvc view using C#