Q&A for users of TeX, LaTeX, ConTeXt, and related typesetting systems
SELECT eomonth(p.creationdate), ROUND((COUNT(p.DeletionDate))*100.0/(COUNT(p.Id)),2) AS percentage FROM PostsWithDeleted p WHERE (p.PostTypeId IN (##types?1,2##)) --- 1=questions --- 2=answers --- 1,2=both GROUP BY eomonth(p.creationdate) ORDER BY eomonth(p.creationdate)