一重引用符を使用します。二重引用符はフィールドとして解釈されます:
select id,name,
case
when rating between 4.0 and 5 then 'very good'
when rating between 3.0 and 3.5 then 'good'
else 'Good Resort'
end as comment
from resort
order by id;
一重引用符を使用します。二重引用符はフィールドとして解釈されます:
select id,name,
case
when rating between 4.0 and 5 then 'very good'
when rating between 3.0 and 3.5 then 'good'
else 'Good Resort'
end as comment
from resort
order by id;