16.20 - Usage Notes - 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)
This syntax … Counts the total number of rows …
COUNT(value_expression) in the group for which value_expression is not null.
COUNT (DISTINCT value_expression) in the group for which value_expression is unique and not null.
COUNT(*) in the group of rows on which COUNT operates.

COUNT is valid for any data type.