Q&A about the site for scholars and enthusiasts of literature
SELECT eomonth(p.creationdate), ROUND((COUNT(p.ClosedDate))*100.0/(COUNT(p.Id)),2) AS percentage FROM Posts p WHERE (p.PostTypeId=1) AND (p.CreationDate >= '##Date1?2010-01-01##') AND (p.CreationDate <= '##Date2?2021-01-01##') GROUP BY eomonth(p.creationdate) ORDER BY eomonth(p.creationdate)