Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

query on where condition - upper(rtrim(column)) = ?

663506Oct 14 2008 — edited Oct 14 2008
Hi,

I have a table StudentGrades. This table has an index on the column "grade" of type varchar2.
The values of "grade" column contain string values like: 'A', 'a', 'A ', 'a ', 'A ', i.e. mixed cases and containing white spaces at times.

If I run a query below, will it use the index on grade?

select * from StudentGrades where upper(rtrim(grade)) = ?

where ? is an input parameter from the program and the value has been trimmed and converted to uppercase.

Thanks,
Jason

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 11 2008
Added on Oct 14 2008
4 comments
200 views