SELECT PostNotices.PostId AS [Post Link], COUNT(*) FROM P...

0

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
  PostNotices.PostId AS [Post Link],
  COUNT(*)
FROM PostNotices
JOIN Posts ON PostNotices.PostId = Posts.ParentId
WHERE PostNotices.PostNoticeTypeId = 15 --Bounty: Reward existing answer
  AND PostNotices.CreationDate < Posts.CreationDate
  AND Posts.CreationDate < PostNotices.DeletionDate
GROUP BY PostNotices.PostId

Enter Parameters

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