Crystal 8.5 with Oracle 10i
All VARCHAR2 fields.
Have four parameters and Record Selection formula in part below:
and ({TABLE.COLUMN1} = {?COLUMN1} or {?COLUMN1} = "")
and ({TABLE.COLUMN2} = {?COLUMN2} or {?COLUMN2} = "")
and (UPPERCASE({TABLE.COLUMN3}) = UPPERCASE({?COLUMN3) or UPPERCASE({?COLUMN3) = "")
and (UPPERCASE({TABLE.COLUMN4}) like '*' + UPPERCASE({?COLUMN4}) + "*" or trim({?COLUMN4}) = "")
Parameters are designed to return all values if no criteria is entered into parameter field.
Problem:
When COLUMN1 and COLUMN4 lines are commented out, report returns 49 rows (verified with SQL in Oracle.
When either or both COLUMN1 and COLUMN4 lines are uncommented out, 6 rows are returned.
Why do more than two parameters return improper amount of rows?
All VARCHAR2 fields.
Have four parameters and Record Selection formula in part below:
and ({TABLE.COLUMN1} = {?COLUMN1} or {?COLUMN1} = "")
and ({TABLE.COLUMN2} = {?COLUMN2} or {?COLUMN2} = "")
and (UPPERCASE({TABLE.COLUMN3}) = UPPERCASE({?COLUMN3) or UPPERCASE({?COLUMN3) = "")
and (UPPERCASE({TABLE.COLUMN4}) like '*' + UPPERCASE({?COLUMN4}) + "*" or trim({?COLUMN4}) = "")
Parameters are designed to return all values if no criteria is entered into parameter field.
Problem:
When COLUMN1 and COLUMN4 lines are commented out, report returns 49 rows (verified with SQL in Oracle.
When either or both COLUMN1 and COLUMN4 lines are uncommented out, 6 rows are returned.
Why do more than two parameters return improper amount of rows?