How many of the top users' downvotes are explained

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

select top 10
 u.Id as [User Link],
 u.Reputation,
 u.DownVotes,
 ( select count(c.Id) from Comments c
   where c.Text like '%-1%' and c.UserId = u.Id ) as ExplainedDownVotes
from Users u
order by u.Reputation desc

Enter Parameters

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