Percentage of questions with accepted answer depending on the weekday when the question was posted

1

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

;WITH tmp AS
(SELECT Id, AcceptedAnswerId AS Acc,
    Period =DATEPART("weekday", CreationDate)
FROM Posts
WHERE PostTypeId=1
)
SELECT Period, ROUND((COUNT(Acc))*100.0/(COUNT(*)),2) AS percentage
FROM tmp
GROUP BY Period
ORDER BY Period

Enter Parameters

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