SQLite Forum

User Defined Functions
Login
Why not just do it directly?

```
  select name,
         pi() * pow(radius, 2) * height as volume
    from cylinder
order by 2 desc
;
```