Greetings,
I'm trying to push the following formula, through a native connection in Crystal v 8, to an Oracle database to speed up the processing of the report:
If {?ProductType}='B' then {TASK_DTL.INVN_NEED_TYPE}=53
else
If {?ProductType}='H' then {TASK_DTL.INVN_NEED_TYPE}=2
else
If {?ProductType}='S' then ({TASK_DTL.INVN_NEED_TYPE}=1 or {TASK_DTL.INVN_NEED_TYPE}=50)
However the 'else' statement will not allow me to pass this selection criteria through. I've tried using a CASE statement but i don't know how to write it for Oracle and i'm unconvinced that this will work anyway.
Can anyone help me?!?
Thanks
I'm trying to push the following formula, through a native connection in Crystal v 8, to an Oracle database to speed up the processing of the report:
If {?ProductType}='B' then {TASK_DTL.INVN_NEED_TYPE}=53
else
If {?ProductType}='H' then {TASK_DTL.INVN_NEED_TYPE}=2
else
If {?ProductType}='S' then ({TASK_DTL.INVN_NEED_TYPE}=1 or {TASK_DTL.INVN_NEED_TYPE}=50)
However the 'else' statement will not allow me to pass this selection criteria through. I've tried using a CASE statement but i don't know how to write it for Oracle and i'm unconvinced that this will work anyway.
Can anyone help me?!?
Thanks