So I have a SELECT query, and the result is like this:
SELECT ....
ORDER BY SCORE, STUDENT_NUMBER
STUDENT_NAME STUDENT_NUMBER SCORE
----------------------------------------
Adam 9 69
Bob 20 76
Chris 10 77
Dave 14 77
Steve 5 80
Mike 12 80
But I want to order by STUDENT_NUMBER, but I want them to be grouped by the same score:
STUDENT_NAME STUDENT_NUMBER SCORE
----------------------------------------
Steve 5 80
Mike 12 80
Adam 9 69
Chris 10 77
Dave 14 77
Bob 20 76
So now the data is ordered by STUDENT_NUMBER, but if there is the same SCORE, they are grouped (like it is shown in the next row).
Is it possible to do this with the ORDER BY clause?