Don't touch my junk.


Please login or register to vote for this query.

(click on this box to dismiss)

Drones and Model Aircraft Meta

Q&A for experienced flyers, pilots, and builders of drones and model aircraft

with CandidateEdits as (
    select min(ph.Id) as EditId,
           ph.PostId EditPost,
           ph.RevisionGUID as EditGUID,
           ph.CreationDate as EditDate
    from PostHistory as ph
        inner join Posts as p on ph.PostId = p.Id and OwnerUserId != UserId
    where UserId = ##UserId:int##
      and PostHistoryTypeId in (4,5) --Title/Body edits.
      and PostId = 21539
    group by ph.PostId, ph.RevisionGUID, ph.CreationDate
select EditId, count(
from CandidateEdits as ce Left Outer Join PostHistory as ph on
             EditPost = ph.PostId
         and CreationDate between DateAdd(mm, -6, EditDate) and EditDate
         and Id < EditId
         and RevisionGUID <> EditGUID
group by EditId

Enter Parameters

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