having_condition - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Publication Date
February 2025
Publication ID
B700-4600-008K
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
ft:sourceId
dita
dita:id
jbe1714339405530

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.