Missing Right Parenthesis is oracle's default error msg. It just means that it does not really know what the problem is. Lets try to narrow it down a bit.
Try this:
CASE
WHEN TRIM(JOB_POSITION.BARGAIN_UNIT_CODE) = '' THEN 'N'
END
Do you get the error?
If no then
CASE
WHEN TRIM(JOB_POSITION.BARGAIN_UNIT_CODE) = '' THEN 'N'
ELSE 'Y'
END
Do you get the error?
CASE
WHEN JOB_POSITION.BARGAIN_UNIT_CODE IS NULL THEN 'N'
END
Do you get the error?
If no then
CASE
WHEN JOB_POSITION.BARGAIN_UNIT_CODE IS NULL THEN 'N'
ELSE 'Y'
END
ps
rtrim will only trim on the right where trim will trim both sides.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.