Questions closed for a custom reason

1

Please login or register to vote for this query.

(click on this box to dismiss)

This does not work because PendingFlags only has pending close votes, not votes that succeeded.

Stack Overflow

Q&A for professional and enthusiast programmers

select top ##NumResults:int?50##
  p.Id,
  p.Id as [Post Link]
from PostHistory ph
inner join PostHistoryTypes pht on ph.PostHistoryTypeId = pht.id
inner join Posts p on ph.PostId = p.Id
--inner join PendingFlags pf on p.Id = pf.PostId
where pht.id = 10
--and pf.CloseAsOffTopicReasonTypeId = ##CustomCloseReason:int?4##

Enter Parameters

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