Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
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
---11 = Post Reopened - post voted to be reopened
---13 = Post Undeleted - post voted to be restored