Rolled-back suggested body edits in the past 90 days

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

declare @dumpDate as DateTime = (select max(CreationDate) from PostHistory);

select count(*)
from PostHistory e
join PostHistory r on r.PostId=e.PostId and r.CreationDate > e.CreationDate

where e.PostHistoryTypeId=5
and r.PostHistoryTypeId=8
and not exists (select 1 from PostHistory where PostHistoryTypeId=5 and PostId=e.PostId and CreationDate > e.CreationDate and CreationDate < r.CreationDate)
and exists (select 1 from PostHistory where RevisionGUID=e.RevisionGUID and PostHistoryTypeId=24)
and e.CreationDate > @dumpDate-90

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results