Skip
Arish's avatar

91. Practice - Mixed Sorting


Exercise: Grade and ID

Sort by grade descending, then id ascending.

Solution

sql
1SELECT * FROM students
2ORDER BY grade DESC, id ASC;