It is clear that the execution of this query entails three scans of the table GRADES followed by the computation of the unions. The result is sorted because of the use of the union operation.
In SQL Plus we can replace the cumbersome query used in Example 5.17.10
by:
computation