Number of questions and askers with the avg post score

0

Please login or register to vote for this query.

(click on this box to dismiss)

A list of the top 500 users with the highest average answer score excluding community wiki / closed posts or users with less than 10 answers

Emacs

Q&A for those using, extending or developing Emacs

with cte as (
select p.OwnerUserId
  , sum(case when p.PostTypeId = 1 then 1 else 0 end) Q
  , sum(case when p.PostTypeId = 2 then 1 else 0 end) A
from Posts p
group by p.OwnerUserId
)
select A, count(distinct OwnerUserId)
from cte
group by A

Enter Parameters

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