BigQuery computes a great summary string

Is there a way to add a row with totals in my result set, e.g. ms-sql ROLLUP? I want to avoid using an extra query for these totals.

+4
source share
2 answers

Edited: BigQuery now supports the ROLLUP statement. See the docs request link for more information .

+3
source

Update . Since this question was submitted, BigQuery implemented a support offer GROUP BY ROLLUPthat is compliant with the SQL standard. This is described here: https://cloud.google.com/bigquery/query-reference#groupby

+3
source

Source: https://habr.com/ru/post/1531372/


All Articles