15.10 - HAVING - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Language
English (United States)
Last Update
2018-06-05
dita:mapPath
SQL_DDL_15_10.ditamap
dita:ditavalPath
ft:empty

An introduction to a conditional grouping clause in the SELECT statement.

A HAVING clause is valid when coded as part of a seed statement.

HAVING is never valid when coded as part of a recursive statement.

condition
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 a SAMPLE clause within a subquery predicate within a HAVING clause.
You cannot specify BLOB, CLOB, UDT, or Period columns in the HAVING condition.
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.