Reopen stats for top dup-hammer users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

select top 100 hc.UserId [User Link], count(*) HammerReopened, 
  count(hr.Id) ReopenedOwnClose
from PostHistory hc
left join PostHistory hr on hr.PostId=hc.PostId and hr.CreationDate < hc.CreationDate and hr.PostHistoryTypeId=10 and hr.UserId=hc.UserId
where hc.PostHistoryTypeId=11
and hc.Text like '%BindingReason":{"GoldTagBadge%'
and hc.CreationDate > getdate()-365
group by hc.UserId
order by count(*) desc

Enter Parameters

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