First closures for each close reason type


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for committed Christians, experts in Christianity and those interested in learning more

select crt.Name as [Close Reason Name], comment as [Close Reason ID],
    min(PostId) as [Post Link], min(CreationDate) as [Closed Date]
from PostHistory
left join CloseReasonTypes crt on crt.Id = comment
where PostHistoryTypeId = 10 -- post closed
--    and comment = 104 -- too broad
group by comment, crt.Name
order by cast(comment as int)

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results