I am looking for solutions to the error that is presented to me at the time of writing this query (I am new to the platform, I regret the inappropriate documentation of the code):
SELECT EVALUATION
CASE
WHEN EVALUATION = '1' THEN 'Malo'
WHEN EVALUATION = '2' THEN 'Regular'
WHEN EVALUATION = '3' THEN 'OK'
WHEN EVALUATION = '4' THEN 'Bueno'
WHEN EVALUATION = '5' THEN 'Excelente'
ELSE 'No diligenciado' END
FROM REGISTRATIONS;
Now, although it seems that this is in order, I get error FROM keyword not found where expected
Also try the following way:
SELECT
EVALUATION
decode ( EVALUATION,
'1','MALO',
'2','REGULAR',
'3','OK',
'4','BUENO',
'5','EXCELENTE',
'NO FUE DILIGENCIADO')STATUSTEXT
FROM REGISTRATIONS;
I get the same error.