Users count by location


Please login or register to vote for this query.

(click on this box to dismiss)

Software Engineering

Q&A for professionals, academics, and students working within the systems development life cycle

UPPER(u.Location) [Location],
count(distinct u.Id) [UserCount]
from Users u
inner join Posts p on p.OwnerUserId = u.Id
inner join PostTags pt on pt.PostId = p.Id
inner join Tags t on t.Id = pt.TagId
where LEN(u.Location) > 1 AND u.Location like '%,%'
group by UPPER(u.Location)
HAVING count(distinct u.Id) > 2
order by count(distinct u.Id) desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results