Hello
I am using Crystal 8 with linking ODBC to an SQL database on a Windows XP computer.
The question I have is about report optimization. The database I'm using is a hospital one and I create error specific reports (meaning that if the report is blank, there aren't any errors) with many criteria. I create formulae called criteria1, criteria 2 etc. (create as many as required for the report) and in the select statement include (@criteria1) or (criteria2) etc.
The statements may look like:
If {patserv} = "54" and {Sex} = "M" then true
If {entry} = "E" and {Disp} = "01" then true
When I look in the SQL query the parameters were passed and I get the records I'm looking for.
Another report writer in the office selects all criteria and then suppresses the detail and/or group sections to only show the erroneous reports.
Which method produces more optimal record selection? Thanks for any and all comments.
Shelby
I am using Crystal 8 with linking ODBC to an SQL database on a Windows XP computer.
The question I have is about report optimization. The database I'm using is a hospital one and I create error specific reports (meaning that if the report is blank, there aren't any errors) with many criteria. I create formulae called criteria1, criteria 2 etc. (create as many as required for the report) and in the select statement include (@criteria1) or (criteria2) etc.
The statements may look like:
If {patserv} = "54" and {Sex} = "M" then true
If {entry} = "E" and {Disp} = "01" then true
When I look in the SQL query the parameters were passed and I get the records I'm looking for.
Another report writer in the office selects all criteria and then suppresses the detail and/or group sections to only show the erroneous reports.
Which method produces more optimal record selection? Thanks for any and all comments.
Shelby