Manually protected questions


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for community managers, administrators, and moderators

select distinct PostId as [Post Link]
from PostHistory
where PostHistoryTypeId=19
and PostId not in 
 (select p.PostId 
  from PostHistory p
  join PostHistory up on up.PostId=p.PostId
  where p.PostHistoryTypeId=19
   and up.PostHistoryTypeId=20
  group by p.PostId
  having max(up.CreationDate) > max(p.CreationDate))
 and UserId <> -1

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results