Kccrosser
1850 pts. | Jul 9 2009 3:28PM GMT
I am a little puzzled by your title (”SQL Server Report Builder”) and your comment about Oracle. Is this an Oracle or SQL Server system, or are you using SSRS against an Oracle database?
If this is a SQL Server database, then you don’t need the “upper” functions in the where clause - SQL Server isn’t case sensitive.
I am not sure how your records are distributed or keyed, but in general, using “ltrim”, “rtrim”, and “upper” functions in a Where clause can cause performance issues. If these are only running on a small set of records selected by the other Where expressions, that may not be a problem. I have a pathological dislike of functions in Where clauses, as these mean that the query optimizer will ignore indexes on columns referenced in the function calls and this can in turn cause full-table scans.
Waynefmck
40 pts. | Jul 9 2009 8:43PM GMT
This is Oracle. I do think I asked this question in the wrong place.
In the system, the rtrim, ltrim and upper are needed to ensure the matches we want. The report runs quickly.






