Hello,
Crystal Reports v9
Oracle db ver 9i
I am creating a command object within a Crystal report and I need some help.
Here is my current query:
Select *
from
qm_document_sp qmsp, dm_document_sp dmsp
where
qmsp.R_DOCID = dmsp.R_OBJECT_ID
and
dmsp.R_OBJECT_TYPE in {?Doctypes}
I would like to change the where clause to select all
{?Doctypes} if the user enters ('all') into the parameter prompt or limit the {?Doctypes} to the list provided if they enter ('cgen', 'ccal'). Can someone let me know if it is possible to do an IF, THEN, ELSE within the WHERE clause, and if it is possible, an example of how I could do it.
Thanks in advance.
Crystal Reports v9
Oracle db ver 9i
I am creating a command object within a Crystal report and I need some help.
Here is my current query:
Select *
from
qm_document_sp qmsp, dm_document_sp dmsp
where
qmsp.R_DOCID = dmsp.R_OBJECT_ID
and
dmsp.R_OBJECT_TYPE in {?Doctypes}
I would like to change the where clause to select all
{?Doctypes} if the user enters ('all') into the parameter prompt or limit the {?Doctypes} to the list provided if they enter ('cgen', 'ccal'). Can someone let me know if it is possible to do an IF, THEN, ELSE within the WHERE clause, and if it is possible, an example of how I could do it.
Thanks in advance.