Number of active experts per week

0

Please login or register to vote for this query.

(click on this box to dismiss)

Homebrewing

Q&A for dedicated home brewers and serious enthusiasts

-- Time series of the number of active experts per week
-- Where "active expert" is someone who has posted more than one upvoted answer.
-- Per Deer Hunter's definition in http://meta.stackexchange.com/a/261608/
--
-- X-axis is in years, so the point at 2015.0 is the first week of 2015.


select YR_WK, NumAnswers
from
(
  select
      (datepart(yy, p.creationdate) + (datepart(wk, p.creationdate)-1) / 52.0) as YR_WK
    , u.id as UID
    , u.DisplayName as Name
    , count (*) as NumAnswers
  from users u
  inner join posts p on
        p.owneruserid = u.id
    and p.posttypeid = 2
    and p.score > 0
  group by 
     (datepart(yy, p.creationdate) + (datepart(wk, p.creationdate)-1) / 52.0)
    , u.id , u.DisplayName
) AnsPerUPerWk
where NumAnswers > 1
order by YR_WK asc

Enter Parameters

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