Number of active experts per week in a TAG (SO), parameterized

0

Please login or register to vote for this query.

(click on this box to dismiss)

Biology Meta

Q&A about the site for biology researchers, academics, and students

select
    (datepart(yy, p.creationdate) + datepart(wk, p.creationdate) / 52.0) as YR_WK
  , u.id as UID
  , 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) / 52.0)
  , u.id

Enter Parameters

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