I am writing a statistical query where the value is duplicated in `SELECT`, `GROUP BY`, and `ORDER BY`. Having to repeat the same value makes it hard to read the query and modify it.

How can I avoid repeating `FLOOR(COALESCE(LEN(Body), 0) / 100)` 3-4 times in the query below.

```sql
SELECT FLOOR(COALESCE(LEN(Body), 0) / 100) * 100 as BodyLengthStart,
    (FLOOR(COALESCE(LEN(Body), 0) / 100) + 1) * 100 - 1 as BodyLengthEnd,
    COUNT(*) as MessageCount
FROM [Message]
GROUP BY FLOOR(COALESCE(LEN(Body), 0) / 100)
ORDER BY FLOOR(COALESCE(LEN(Body), 0) / 100)

```

The output of the query is the number of messages bucketed by how many hundreds of characters they have.

| BodyLengthStart | BodyLengthEnd | MessageCount |
| --- | --- | --- |
| 0 | 99 | 130 |
| 100 | 199 | 76 |
| 200 | 299 | 36 |