Change the
Order By
clause to include a value that will cause the sort order you desire.
order by
case when amt >=0 and amt <50.00
then 1
when amt >=51.00 and amt <100.00
then 2
when amt >=101 and amt <200.00
then 3
when amt >=201 and amt <300.00
then 4
When amt >=301 and amt<501.00
then 5
When amt >=501 and amt < 1000.00
then 6
When amt >=1000
then 7
end
You might need to change the
Group By
, too