The CASE statement allows you to group the number ranges like this by returning the string "1-10" or "11-20" based on the value of cnt.