17.00 - QUALIFY qualify_condition - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Advanced SQL Engine
Teradata Database
Release Number
Release Date
September 2020
Content Type
Programming Reference
Publication ID
English (United States)

An introduction to a conditional ordered analytical function filtering clause in the SELECT statement.

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

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

See Teradata Vantage™ - SQL Data Manipulation Language, B035-1146 for complete documentation of the QUALIFY clause.

One or more conditional Boolean expressions that must be satisfied by the results groups.
You can use aggregate operators in a QUALIFY condition.
You cannot specify a SAMPLE clause within a subquery predicate within a QUALIFY clause.
You cannot specify BLOB, CLOB, UDT, or Period columns in the QUALIFY condition.
QUALIFY condition filters rows from a previously computed ordered analytical function.