I have this table
TableA
ID Value 1 125 2 400 3 99 4 130 5 300 6 350 7 399 .. ..
I want below table as a Output where range off set (100) is pre defined. Range value 100= TableA values between 0-100, 200 means 101-200
ResultTable
Range Count 100 1 200 2 300 1 400 3 .. ..
What is the best way to do it any idea suggestions.