I need to query a table for values given a string. The table is case sensitive but I want to do a ToLower() in the comparison.
Suppose I have a classes table with the following data.
class teacher
-----------------
Mat101 Smith
MAT101 Jones
mat101 Abram
ENG102 Smith
My query should be something like
Select teacher From classes where lower(class) = 'math101'
Is this the best way to do the comparison?
Update
I have no control over the database or the data. I am a read only consumer.