Questions that have been protected at some point with at least one deleted answer

0

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

SELECT ph.PostId AS [Post Link],
       ph.CreationDate AS [protected At],
       COUNT(DISTINCT(p.Id)) AS 'Deleted Answers'
       
FROM PostHistory ph
INNER JOIN PostsWithDeleted p ON ph.PostId = p.ParentId
WHERE ph.PostHistoryTypeId = 19
    AND p.DeletionDate IS NOT NULL
Group by ph.PostId, ph.CreationDate
ORDER BY [protected At] DESC;

Enter Parameters

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