SELECT
ZOC, UNIT,
CASE ZOC
WHEN ZOC = '51' THEN 'ZONE OPERATION KHULNA'
WHEN ZOC = '52' THEN 'ZONE OPERATION JESSORE'
WHEN XOC = '53' THEN 'ZONE OPERATION KUSHTIA'
END
FROM
GNGRB.BS_CLOSING
ORDER BY
ZOC;
I get this error:
ORA-00905: missing keyword
00905. 00000 - "missing keyword"
*Cause:
*Action:
Error at Line: 16 Column: 10
zoc
a string column or why are you using quotes ('51'
etc.)? If it is a numeric column, you should use numbers, e.g.WHEN ZOC = 51
. – Thorsten Kettner