Percentage of deleted questions per month

0

Please login or register to vote for this query.

(click on this box to dismiss)

SharePoint

Q&A for SharePoint enthusiasts

SELECT
  eomonth(p.creationdate),
  ROUND((COUNT(p.DeletionDate))*100.0/(COUNT(p.Id)),2) AS percentage
FROM PostsWithDeleted p
WHERE (p.PostTypeId=1)
---  AND (p.CreationDate >= '##Date1?1900-01-01##') AND (p.CreationDate <= '##Date2?3010-12-31##')
GROUP BY eomonth(p.creationdate)
ORDER BY eomonth(p.creationdate)

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results