Skip
Arish's avatar

155. GROUP BY Computed Column


Group by Computed Values

sql
1SELECT LENGTH(name) AS name_length, COUNT(*)
2FROM students
3GROUP BY LENGTH(name);

Group by calculated expression.