If we wish to rank the students based on the number of courses and, then, at an equal number of courses, to rank them in the order of the grade point average, we could write the following query:
If we wish to rank the students based on the number of courses and, then, at an equal number of courses, to rank them in the order of the grade point average, we could write the following query: