having_condition - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

One or more conditional Boolean expressions that must be satisfied by the results groups.

You can use aggregate operators in a HAVING condition.

You cannot specify BLOB, CLOB, or Period columns in the HAVING condition.

You cannot specify a SAMPLE clause within a subquery predicate within a HAVING clause.

HAVING condition filters rows from a single group defined in the select expression list that has only aggregate results, or it selects rows from the group or groups defined in a GROUP BY clause.

See HAVING Clause for complete documentation of the HAVING clause.