how to order by desc if i have a table with max that has more than one max values?

StackOverflow https://stackoverflow.com/questions/21816589

  •  12-10-2022
  •  | 
  •  

문제

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 ?

도움이 되었습니까?

해결책

select *
from students
order by grade, student_name;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top