Questions which were and HNQ and were closed at some point

1

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

SELECT p.Id AS [Post Link],
    concat('site://posts/',
          p.Id,
          '/revisions'
          ) [Revisions Link],
  p.OwnerUserId AS [User Link],
  p. Score, p.Tags
FROM Posts p INNER JOIN PostHistory ph1 ON (p.Id=ph1.PostId and ph1.PostHistoryTypeId=52)
  INNER JOIN PostHistory ph2 ON (p.Id=ph2.PostId and ph2.PostHistoryTypeId=10)
ORDER BY p.ID DESC
---52 = Question became hot network question
---10 = Post Closed - post voted to be closed

Enter Parameters

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