Q&A about the site for serious players and enthusiasts of chess
-- Enter Query Title -- Enter Query Description WITH c AS ( SELECT Posts.Id AS PostId, DATENAME(dw, Votes.CreationDate) AS Day FROM Posts INNER JOIN Votes ON Votes.PostId = Posts.Id WHERE Votes.VoteTypeId = 1 ) SELECT Day, COUNT(PostId) OVER(PARTITION BY Day) AS Count FROM c GROUP BY PostId, Day ORDER BY Day