Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing Right Parenthesis Error

Status
Not open for further replies.

Buckman0

Technical User
May 21, 2001
5
US
I have the following derived formula and get an error stating Missing Right Parenthesis. I'm not sure what is causing this...

CASE
WHEN RTRIM(JOB_POSITION.BARGAIN_UNIT_CODE) = '' THEN 'N'
WHEN JOB_POSITION.BARGAIN_UNIT_CODE IS NULL THEN 'N'
ELSE 'Y' END
 
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.

CharlesCook.com
ADP - PeopleSoft - SAP
ReportSmith - Crystal Reports - SQR - Query - Access
Reporting - Interfaces - Data Mining
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top