Zero and non-zero accepted count. Self-accepted answers do not count.
Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry
-- How Unsung am I?
-- Zero and non-zero accepted count. Self-accepted answers do not count.
with newbies as
select top 100 * from badges where
name = 'Unsung Hero'
order by date desc
count(a.Id) as [Accepted Answers],
sum(case when a.Score = 0 then 0 else 1 end) as [Scored Answers],
sum(case when a.Score = 0 then 1 else 0 end) as [Unscored Answers],
sum(CASE WHEN a.Score = 0 then 1 else 0 end)*1000 / count(a.Id) / 10.0 as [Percentage Unscored]
on a.Id = q.AcceptedAnswerId
inner join newbies n on a.owneruserid = n.userid
a.CommunityOwnedDate is null
and q.OwnerUserId != n.userid
and a.postTypeId = 2
group by n.userid