Aggregate functions
BigQuery reference: Aggregate functions.
An aggregate call may use
FILTER (WHERE ...), an in-argument ORDER BY, a HAVING MAX/HAVING MIN modifier, or an OVER (...) window with ROWS and RANGE frames.
BigQuery aggregate, statistical, approximate, and window functions in BigQuery compatibility mode.
FILTER (WHERE ...), an in-argument ORDER BY, a HAVING MAX/HAVING MIN modifier, or an OVER (...) window with ROWS and RANGE frames.