Exercise: Sort by Course Length
Order students by length of course names.
Solution
sql
1SELECT name, course FROM students
2ORDER BY LENGTH(course);
Order students by length of course names.
1SELECT name, course FROM students
2ORDER BY LENGTH(course);