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

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
qtb1554762060450.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™
HAVING search_condition

Syntax Elements

search_condition
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.