sql >> Base de Datos >  >> RDS >> Oracle

ORA-00904:Buen resort:identificador no válido

Utilice comillas simples. Las comillas dobles se interpretan como un campo:

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;