Posts which were reopended before getting undeleted

1

Please login or register to vote for this query.

(click on this box to dismiss)

Internet of Things Meta

Q&A about the site for builders and users of networked sensors and control devices in the contexts of smart homes, industry automation, or environmental sensors

SELECT
  ph1.PostId AS [Post Link],
  url = 'site://posts/' + CAST(ph1.PostId AS varchar)+'/revisions'
FROM PostHistory ph1 INNER JOIN PostHistory ph2 ON ph1.PostId=ph2.PostId
WHERE (ph1.PostHistoryTypeId=11) AND (ph2.PostHistoryTypeId=13) AND
  (ph1.CreationDate<ph2.CreationDate)
---11 = Post Reopened - post voted to be reopened
---13 = Post Undeleted - post voted to be restored

Enter Parameters

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