Average number of answers depending on day when featured question was posted

1

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

;WITH tmp AS
(SELECT p.AnswerCount AS ACount,
    Period = DATEPART("weekday", p.CreationDate)
FROM Posts p INNER JOIN Votes bs
    ON p.Id = bs.PostId
    AND bs.VoteTypeId = 8  -- BountyStart
)
SELECT Period, AVG(cast(ACount as decimal))
FROM tmp
GROUP BY Period
ORDER BY Period

Enter Parameters

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