Kebabmeister
Programmer
I have the following fragment of SQL as part of a textual query in the Actuate reports application
(Select provider, Count(*) As CountOfPrev From wostatus, workorder where workorder.wonum = wostatus.wonum and
wostatus.wonum in (Select wonum from workorder where siteid = 'N304' and location = :site) and wostatus.status = 'LOGNOTE2' and
((Trunc(wostatus.changedate) - (To_Date('01/01/1990','dd/mm/yyyy'))) >= (lower - (To_Date('01/01/1990','dd/mm/yyyy'))) -
upper - :lower))) and
((Trunc(wostatus.changedate) - (To_Date('01/01/1990','dd/mm/yyyy'))) <= (Upper - (To_Date('01/01/1990','dd/mm/yyyy'))) -
upper - :lower))) Group by workorder.provider) SubQuery2
Although this works in Toad, in Actuate it throws up this error. Does anyone know what it is?
(Select provider, Count(*) As CountOfPrev From wostatus, workorder where workorder.wonum = wostatus.wonum and
wostatus.wonum in (Select wonum from workorder where siteid = 'N304' and location = :site) and wostatus.status = 'LOGNOTE2' and
((Trunc(wostatus.changedate) - (To_Date('01/01/1990','dd/mm/yyyy'))) >= (lower - (To_Date('01/01/1990','dd/mm/yyyy'))) -
upper - :lower))) and
((Trunc(wostatus.changedate) - (To_Date('01/01/1990','dd/mm/yyyy'))) <= (Upper - (To_Date('01/01/1990','dd/mm/yyyy'))) -
upper - :lower))) Group by workorder.provider) SubQuery2
Although this works in Toad, in Actuate it throws up this error. Does anyone know what it is?