with breakdown as ( select [User] = p.OwnerUserId ,[Count...

0

Please login or register to vote for this query.

(click on this box to dismiss)

English

Q&A for linguists, etymologists, and serious English language enthusiasts

with breakdown as (
  select
     [User] = p.OwnerUserId
    ,[Count] = count(*)
from Votes v
  inner join Posts p on v.PostId = p.Id
where p.PostTypeId = 1 -- questions
  and v.VoteTypeId = 2 -- upvotes
group by
   p.OwnerUserId
   )
select top 100 * 
from breakdown 
order by [Count] desc;

Enter Parameters

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