Page 1 of 1

Problem with sum ora-00907 missing right parenthesis

Posted: Thu Oct 23, 2008 4:44 am
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!

Problem with sum ora-00907 missing right parenthesis

Posted: Thu Oct 23, 2008 6:48 am
by Edward
Hello, Landaz.

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

Thank you.

Problem with sum ora-00907 missing right parenthesis

Posted: Fri Oct 24, 2008 5:31 am
by landaz
I have solved the problem by rewriting the query using a decode.

Thanks a lot!

Problem with sum ora-00907 missing right parenthesis

Posted: Fri Oct 24, 2008 6:59 am
by Edward
Hello, Landaz.

Let us know if you need any help.

Thank you.