I want to do the following, which I [found for SQL Server](https://stackoverflow.com/questions/232387/in-sql-how-can-you-group-by-in-ranges), using PrestoDB?

```
select t.range as 'latency', count(*) as 'Total'
from (
  select case  
    when latency between 0 and 0.250 then 'Fast'
    when latency between 0.250 and 1.0 then 'Normal'
    when latency between 1.0 and 2.0 then 'Elevated'
    else 'High' 
  end as range
  from myprestodb.mytable) t
group by t.range

```

... so that I get result like this:

```
latency        | Total
-------------------------------------
   Fast        |        11
   Normal      |        14
   Elevated    |         3
   High        |         1

```