Questions with more than 2 answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace

Q&A for members of the workforce navigating the professional setting

declare @epoch datetime = '2014-08-26';

SELECT DATEADD(week, datediff(week, @epoch, p.CreationDate), @epoch) as Week,
    avg(1.0*CommentCount) comments,
    avg(1.0*AnswerCount) answers,
    avg(1.0*p.Score) score,
    avg(ViewCount/1000.0) kviews
from Posts p 
where p.CreationDate > @epoch - 4*datediff(week, @epoch, getdate())
      and AnswerCount > 2
Group by DATEADD(week, datediff(week, @epoch, p.CreationDate), @epoch) 
Order by DATEADD(week, datediff(week, @epoch, p.CreationDate), @epoch)

Enter Parameters

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