HAVING Clause Syntax | SQL SELECT Statements | Teradata Vantage - 17.05 - HAVING Clause Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Manipulation Language

Advanced SQL Engine
Teradata Database
Release Number
Release Date
January 2021
Content Type
Programming Reference
Publication ID
English (United States)
HAVING search_condition

Syntax Elements

One or more conditional expressions that must be satisfied by the result rows. You can specify aggregate operators, scalar subqueries, and DEFAULT functions as conditional expressions with HAVING.
HAVING search_condition selects 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.
The HAVING search condition cannot reference BLOB, CLOB, ARRAY, or VARRAY columns.
If you specify the value for a row-level security constraint in a search condition, that value must be expressed in its encoded form.