16.20 - Aggregates in WHERE and HAVING Clauses - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

prodname
Advanced SQL Engine
Teradata Database
vrm_release
16.20
created_date
March 2019
category
Programming Reference
featnum
B035-1145-162K

Aggregates can appear in the following types of clauses:

  • The WHERE clause of an ABORT statement to specify an abort condition.

    But an aggregate function cannot appear in the WHERE clause of a SELECT statement.

  • A HAVING clause to specify a group condition.