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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decode syntax error

Status
Not open for further replies.
Mar 10, 2004
53
US
What's wrong with this decode statement? I am getting an invalid relational operator message.

DECODE("PS_PERSONAL_DATA"."STATE", 'CA', 13.5)

I also tried enclosing CA with double quotes.

Reportsmith v.3.1

TIA--
 
DECODE("PS_PERSONAL_DATA"."STATE",'CA',13.5,0)<= add a default here


CharlesCook.com
ADP - PeopleSoft - SAP
ReportSmith - Crystal Reports - SQR - Query - Access
Reporting - Interfaces - Data Mining
 
The same line of code without the default is now working for some reason. All I did was recreate the derived field after I completely logged off our hosted environment. I did try putting a default originally and it wouldn't take that too.

Rather strange...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top