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

Top MNC Interview Questions- Full Stack Developer

Interview Questions-2

How to get the user details, user current level, next level, Rank in sql server