Oracle
 sql >> Database >  >> RDS >> Oracle

ORA-00904:Resort valido:identificatore non valido

Usa virgolette singole. Le virgolette doppie vengono interpretate come 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;