Vote on a post

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
      (datepart(yy, p.creationdate) + (datepart(wk, p.creationdate)-1) / 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
    and datepart(yy, p.creationdate)>=2016
  inner join votes v on
        v.PostId = p.Id
    and v.VoteTypeId = 2
    and v.Creationdate - p.creationdate <= 1.0/53.0
  group by 
     (datepart(yy, p.creationdate) + (datepart(wk, p.creationdate)-1) / 52.0)
    , u.id

Enter Parameters

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