SELECT p.Id AS [Post Link], p.ClosedDate AS [Closed On], ...

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 p.Id AS [Post Link], p.ClosedDate AS [Closed On], ph.UserId AS [Closed By]
FROM PostHistory ph
INNER JOIN Posts p ON p.Id = ph.PostId
WHERE ph.PostHistoryTypeId = 10 AND CAST(ph.Comment AS int) = 4
AND p.ClosedDate = ph.CreationDate
ORDER BY p.ClosedDate

Enter Parameters

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