Question

If a have a table with grades and two students have the same max grade, can i order the result by students name ?

  1. Student1 6
  2. Student2 5
  3. Student3 10
  4. Student4 10

How to order by name the students 3 and 4 ?

Was it helpful?

Solution

select *
from students
order by grade, student_name;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top