Dynamic sql?
variables in select statements?
assign the value to a parameter using a formula?
I am looking for a better way to handle wild cards. I have reports that concantenate wild cards to the end of parameter values.
For example:
select * from table where col_name like {?p_parameter}+"%"
I don't want to use the like operator unless the user inputs a wild card... I don't seem to be able to dynamically build my parameter values and I can't figure out how to use a variable in the select either. What is the best way to handle wild cards with Crystal? In oracle reports I can use lexical variables or build the entire select statement dynamically. The only way I have found to do this with crystal is to build a stored procedure and build the sql in the procedure. But I have a bunch of reports that need to be tunned that concat the "%" to end of the where clause.
any help would be greatly appreciated.
variables in select statements?
assign the value to a parameter using a formula?
I am looking for a better way to handle wild cards. I have reports that concantenate wild cards to the end of parameter values.
For example:
select * from table where col_name like {?p_parameter}+"%"
I don't want to use the like operator unless the user inputs a wild card... I don't seem to be able to dynamically build my parameter values and I can't figure out how to use a variable in the select either. What is the best way to handle wild cards with Crystal? In oracle reports I can use lexical variables or build the entire select statement dynamically. The only way I have found to do this with crystal is to build a stored procedure and build the sql in the procedure. But I have a bunch of reports that need to be tunned that concat the "%" to end of the where clause.
any help would be greatly appreciated.