Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation
;WITH tmp AS (SELECT p.Id, p.AcceptedAnswerId AS Acc, Period = DATEPART("weekday", bs.CreationDate) FROM Posts p INNER JOIN Votes bs ON p.Id = bs.PostId AND bs.VoteTypeId = 8 -- BountyStart ) SELECT Period, COUNT(*), COUNT(Acc), ROUND((COUNT(Acc))*100.0/(COUNT(*)),2) AS percentage FROM tmp GROUP BY Period ORDER BY Period