Q&A for professional and enthusiast programmers
select top (##TopX?100##) row_number() over (order by DownVotes/(UpVotes+1) desc, DownVotes asc, DisplayName, Id) as Rank, Id as [User Link], DownVotes/(UpVotes+1) as Ratio, UpVotes, DownVotes, LastAccessDate into #Voters from Users where Id <> -1 select * from #Voters order by Rank select Rank, UpVotes from #Voters order by Rank