Is this the correct way to use the trim function? A grade may have 2 spaces before the letter or 2 spaces after the letter. And I want to trim both sides of the grade to get just the letter(s). This statement is in the query's where clause:
trim(i.grade) in ('A','B','C','D','F','WF','I','E')