Skip
Arish's avatar

111. Practice - Order by Length


Exercise: Sort by Course Length

Order students by length of course names.

Solution

sql
1SELECT name, course FROM students
2ORDER BY LENGTH(course);