Dupe Hammer Accuracy

0

Please login or register to vote for this query.

(click on this box to dismiss)

History

Q&A for historians and history buffs

select top 100 hc.UserId [User Link], count(*) HammerClosed, 
  count(hr.Id) Reopened,
  count(hp.Id) Reclosed,
  Round((count(hr.Id)-count(hp.Id))*100.0/count(*),2) PctError
from PostHistory hc
left join PostHistory hr on hr.PostId=hc.PostId and hr.CreationDate > hc.CreationDate and hr.PostHistoryTypeId=11 
left join PostHistory hp on hp.PostId=hr.PostId and hp.PostHistoryTypeId=10 and hp.CreationDate > hr.CreationDate
where hc.PostHistoryTypeId=10
and hc.Comment like '101%'
and hc.Text like '%BindingReason":{"GoldTagBadge%'
group by hc.UserId
order by count(*) desc

Enter Parameters

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