Group by Computed Values
sql
1SELECT LENGTH(name) AS name_length, COUNT(*)
2FROM students
3GROUP BY LENGTH(name);Group by calculated expression.

1SELECT LENGTH(name) AS name_length, COUNT(*)
2FROM students
3GROUP BY LENGTH(name);Group by calculated expression.