It is clear that the execution of this query entails three scans of the table GRADES followed by the computation of the รวมกัน. The result is sorted because of the use of the รวมกัน operation.
In SQL พัส we can replace the cumbersome query used in Example 5.17.10
by:
computation