Question score by location


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select count(*) N,
       round(avg(Score*1.0), 2) avg_score, 
       isnull(Location, '') location
from Users u
     join Posts on OwnerUserId = u.Id
where PostTypeId = 1
group by isnull(Location, '')
order by count(*) desc

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results