Closed ReOpened After LastEdit By Owner After Closed

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT p.LastEditDate, p.ClosedDate,
  CASE WHEN p.LastEditDate >= p.ClosedDate THEN 'Counted' ELSE 'Ignored' END AS Diff,
  p.Id AS [Post Link]
FROM Posts p, PostHistory ph
WHERE 
  p.LastEditorUserId = p.OwnerUserId
  AND p.Id = ph.postId
  AND ph.PostHistoryTypeId = 11
ORDER BY 3

Enter Parameters

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