Reputation 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(1.0*datediff(year, CreationDate, getdate())), 1) acct_age,
       avg(Reputation) avg_rep, 
       isnull(Location, '') location
from Users 
group by isnull(Location, '')
order by count(*) desc

Enter Parameters

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