All PostHistory records for deleted posts

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
  PostHistoryTypes.Name AS PostHistoryTypeName,
  PostHistory.*
FROM PostHistory, PostsWithDeleted, PostHistoryTypes
WHERE
  PostHistory.PostId = PostsWithDeleted.Id
  AND
  PostsWithDeleted.DeletionDate IS NOT NULL
  AND
  PostHistory.PostHistoryTypeId = PostHistoryTypes.Id
ORDER BY PostHistory.CreationDate

Enter Parameters

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