Most prolific answerers during date interval, mean answer score

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 top ##HowMany?50##
OwnerUserId as [User Link],
COUNT(*) as Answers,
Round(1.0 * sum(Score) / Count(*), 2) as 'Mean Answer Score'
FROM Posts
WHERE CreationDate between ##StartDate:string?2018-04-01## and DATEADD(day, -1 * ##DaysPrior:int?30##, ##StartDate##)
  AND PostTypeId = 2 -- 1 for questions, 2 for answers
GROUP BY OwnerUserId
ORDER BY Answers DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results