Q&A for people studying math at any level and professionals in related fields
/* http://stackoverflow.com/a/233223/3184351 */
select u.range as [Reputation Range], count(*) as [Number of Users]
when Reputation between 1 and 199 then '0-199'
when Reputation between 200 and 19999 then '200-19999'
else '20000+' end as range
from Users) u
group by u.range