Average number of answers depending on day when bounty was started

1

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Different

Q&A for power users of Apple hardware and software

;WITH tmp AS
(SELECT p.AnswerCount AS ACount,
    Period = DATEPART("weekday", bs.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 to meta site
loading Hold tight while we fetch your results