Hi Im trying to rewrite the following code that uses CASE WHEN. I was thinking that I can instead use decode or something else?

The code:

```
create table want as select 
case when (Var1<20 ) then 1 
when (40>Var1>=20 ) then 2 
when (Var1>=40 ) then 3 
else .
end as Var1

```