The data are imported from another application. Both grades are contained in a single record in that application. Actually, the application, itself, is supposed to return the highest score on any exam taken, but it doesn't appear to be doing so. As a result, I have to program around it. I was looking for something similar to
high grade = maximum(grade1, grade2)
which is available in other applications (e.g., SAS).