Suppose I have a table with a numeric column (lets call it \"score\").
I\'d like to generate a table of counts, that shows how many times scores appeared in each ran
select cast(score/10 as varchar) + '-' + cast(score/10+9 as varchar), count(*) from scores group by score/10