Problem with sum ora-00907 missing right parenthesis
Posted: Thu Oct 23, 2008 4:44 am
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!
...
SUM(CASE WHEN date1 > date2 THEN nvl(value, 0) ELSE 0 END)
...
If I use:
...
SUM(value)
...
There is no problem.
Thanks!