sum_x
Calculates the sum of values in a column.
Syntax
sum_x(<table>, <expr>)
| Parameter | Type | Description |
|---|---|---|
| table | Table | The table to operate on. |
| expr | any | The expression to evaluate. |
Return values
Depends on input arguments.
Usage
Calculates the sum of order total prices.
sum_x(orders.total_price)