Number of users who can vote

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select canUpvote, canDownvote, count(*) as numUsers

from (
  select id,
    case 
      when reputation < 15 then 'N'
      else 'Y'
    end as canUpvote,  
    case 
      when reputation < 125 then 'N'
      else 'Y'
    end as canDownvote    
  from Users    
) as tmp
group by canUpvote, canDownvote

Enter Parameters

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