as
Renames a column or expression with an alias.
Syntax
as(<value>, <name>)
| Parameter | Type | Description |
|---|---|---|
| value | any | The value to process. |
| name | Text | The name or identifier. |
Return values
Depends on input arguments.
Usage
Renames the sum of total prices to 'total' for better readability.
as(sum(orders.total_price), 'total')