Problem with sum ora-00907 missing right parenthesis

Stimulsoft Reports.NET discussion
Post Reply
landaz
Posts: 2
Joined: Thu Oct 23, 2008 4:27 am
Location: Seville

Problem with sum ora-00907 missing right parenthesis

Post by landaz »

Hi! I have a problem with a query that contains a sum clause. When executing it in stimulreport.net 2006.4, I get a missing right parenthesis error. I´ve tried the query directly to oracle, throught sql plus, and I have no problems. My query is:

...
SUM(CASE WHEN date1 > date2 THEN nvl(value, 0) ELSE 0 END)
...

If I use:

...
SUM(value)
...

There is no problem.

Thanks!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with sum ora-00907 missing right parenthesis

Post by Edward »

Hello, Landaz.

Please click that DataSource in the Dictionary and switch to the 'Properties' window. Set 'AllowExpressions' in false.

Thank you.
landaz
Posts: 2
Joined: Thu Oct 23, 2008 4:27 am
Location: Seville

Problem with sum ora-00907 missing right parenthesis

Post by landaz »

I have solved the problem by rewriting the query using a decode.

Thanks a lot!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with sum ora-00907 missing right parenthesis

Post by Edward »

Hello, Landaz.

Let us know if you need any help.

Thank you.
Post Reply