Comment on page
SUM
Computes the sum of all input values.
SUM(X)
Type:
numeric
The values to be summed up.
Type: same as input
Returns the sum of all input values.
CREATE JOB function_operator_example
ADD_MISSING_COLUMNS = true
AS INSERT INTO default_glue_catalog.upsolver_samples.orders_transformed_data MAP_COLUMNS_BY_NAME
SELECT
LOWER(ordertype) as ordertype,
ROUND(SUM(nettotal), 2) as nettotal
FROM default_glue_catalog.upsolver_samples.orders_raw_data
WHERE $commit_time BETWEEN run_start_time() - PARSE_DURATION('1d') AND run_end_time()
GROUP BY 1
LIMIT 2;
ordertype | nettotal |
---|---|
pickup | 108737371.18 |
shipping | 772371990.83 |
Last modified 1yr ago