Percentage of first posts which get deleted (per month)


Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

;with firstpostids_cte as (
SELECT MIN(Id) AS MinId, OwnerUserId
FROM PostsWithDeleted
WHERE PostTypeId=1
GROUP BY OwnerUserId
, firstpostsclosed_cte as (
p.Id, p.CreationDate AS cre, p.DeletionDate AS del
FROM firstpostids_cte fp JOIN PostsWithDeleted p ON fp.MinId=p.Id

number = ROW_NUMBER() OVER (ORDER BY format(cre, 'yyyy-MM')),
format(cre, 'yyyy-MM'), ROUND((COUNT(del))*100.0/(COUNT(*)),5) AS percentage
FROM firstpostsclosed_cte
GROUP BY format(cre, 'yyyy-MM')
ORDER BY format(cre, 'yyyy-MM')

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results