16.20 - Results of Aggregation on Zero Rows - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1145-162K
Language
English (United States)

Aggregation on zero rows behaves as indicated by the following table.

This form of aggregate function … Returns this result when there are zero rows …
COUNT(expression) WHERE … 0
all other forms of aggregate_operator (expression) WHERE … Null
aggregate_operator (expression) … GROUP BY …

aggregate_operator (expression) … HAVING …

No Record Found