I am facing an error message:
ORA-00905 : missing keyword
I guess that it is related to the case
expression listed below. Any suggestions to resolve it?
This is the code :
case when M1.M_GL_CAT_T24 <= 50000 then M1.M_GL_CAT_T24 as CATEGORY1 else 0 end,
case when M1.M_GL_CAT_T24 <= 50000 then M1.M_GL_ACC_NAM as NAME else '' end,
case when M1.M_GL_CAT_T24 > 50000 then M1.M_GL_CAT_T24 as PL_CATEGORY else 0 end,
case when M1.M_GL_CAT_T24 <= 50000 then M1.M_GL_ACC_NAM as PLCATE_NAME else '' end,
as CATEGORY1
should come at the end of your statement. Same for the rest of the columns. – Patrick Hofman Jun 9 '15 at 14:07as CATEGORY1
needs to go after eachcase
expression - not after the statement. – a_horse_with_no_name Jun 9 '15 at 14:12