Protected questions

1

Please login or register to vote for this query.

(click on this box to dismiss)

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

select distinct
  PostId as [Post Link],
  UserId as [User 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))

Enter Parameters

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