Users with more than 400 upvotes on their questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

not including deleted questions, or community wiki questions

Stack Overflow

Q&A for professional and enthusiast programmers

-- Users with more than 400 upvotes on their questions
-- not including deleted questions, or community wiki questions

select 
  p.OwnerUserId as [User Link], 
  sum(case when VoteTypeId = 2 then 1 else 0 end),
  sum(case when VoteTypeId = 3 then 1 else 0 end) 

from Votes p2v
inner join Posts p on p2v.PostId = p.Id
where 
p.PostTypeId = 1 and
p2v.VoteTypeId in (2,3) and 
p.CommunityOwnedDate is null and
p.OwnerUserId is not null 
group by p.OwnerUserId
having COUNT(*) > 400
order by count(*) desc

Enter Parameters

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