Answer score by location

0

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 = 2
group by isnull(Location, '')
order by count(*) desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results