Alphabetical Order
Sort text columns alphabetically.
sql
1SELECT name FROM students
2ORDER BY name;Returns A-Z order: Alice, Bob, Carol...
With Other Columns
sql
1SELECT name, course FROM students
2ORDER BY course, name;
Sort text columns alphabetically.
1SELECT name FROM students
2ORDER BY name;Returns A-Z order: Alice, Bob, Carol...
1SELECT name, course FROM students
2ORDER BY course, name;