Example 5.17.9 Suppose that the minimal passing grade is 60 for the first
and second year courses and 70 for the third and fourth year courses. We wish
to print a report that prints ’Passed’ or ’Failed’ depending on the grade and
level of the course. This can be done with the following query: