Top 10 One-Sided Vote Casters

1

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

select *
from (
  select top(10)
         u.reputation
       , u.displayname
       , u.upvotes
       , u.downvotes
       , u.downvotes - u.upvotes as diff
       , 'Not very generous' AS Dsc
  from users u
  where u.id >= 0
  order by diff desc
  union
  select top(10)
         u.reputation
       , u.displayname
       , u.upvotes
       , u.downvotes
       , u.upvotes - u.downvotes as diff
       , 'Very generous' AS Dsc
  from users u
  where u.id >= 0
  order by diff desc
  ) t
order by dsc, diff desc

Enter Parameters

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