Hi all,
( especially Synapse) -
I am trying to insure that the selection criteria I am using is passed to the Database
( CR 8.5, Oracle 9.2, Native Connection):
In its simple form it is:
This works as expected and the Sql contains the
correct criteria..
However, if I try to test for a special case of {?OrgNbr}
It never gets to the database, just the Date range check does..
I have tried:
Which I thought would insure pass-through..but I must be missing something, since it does not.
Any thoughts on recoding?
Thanks..
![[profile] [profile] [profile]](/data/assets/smilies/profile.gif)
( especially Synapse) -
I am trying to insure that the selection criteria I am using is passed to the Database
( CR 8.5, Oracle 9.2, Native Connection):
In its simple form it is:
Code:
{RCA_EMPLOYEE_TIMESHEETS.DEPTID} startswith {?OrgNbr}
and
{RCA_EMPLOYEE_TIMESHEETS.PAY_END_DT} In {?StartDate} to {?EndDate}
This works as expected and the Sql contains the
correct criteria..
However, if I try to test for a special case of {?OrgNbr}
It never gets to the database, just the Date range check does..
I have tried:
Code:
(
IF {?OrgNbr} <> 'CO' then
{RCA_EMPLOYEE_TIMESHEETS.DEPTID} startswith {?OrgNbr}
Else
IF {?OrgNbr} = 'CO' then
{RCA_EMPLOYEE_TIMESHEETS.DEPTID} startswith 'T790'
)
and
{RCA_EMPLOYEE_TIMESHEETS.PAY_END_DT} In {?StartDate} to {?EndDate}
Which I thought would insure pass-through..but I must be missing something, since it does not.
Any thoughts on recoding?
Thanks..
![[profile] [profile] [profile]](/data/assets/smilies/profile.gif)