First closures for each close reason type

0

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

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

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