Nested Aggregation | Teradata Vantage - Nested Aggregation - Analytics Database - Teradata Vantage

Time Series Tables and Operations

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tuc1628112453431.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
sfz1493079039055
lifecycle
latest
Product Category
Teradata Vantageā„¢

Direct nesting of aggregates is not supported in Vantage, such as SELECT AVG(AVG(column))...). However, nested aggregates can be evaluated using a derived table that contains the aggregates to be nested. This is supported by both the GROUP BY TIME clause and the GROUP BY clause. The following examples show this for the GROUP BY TIME clause.