Example

Teradata Vantageā„¢ SQL Functions, Expressions, and Predicates

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K

In the following example, the condition in the RESET WHEN clause contains SELECT as a nested subquery. This is not allowed and results in an error.

   SELECT SUM(a1) OVER
        (ORDER BY 1
         RESET WHEN 1 in (SELECT 1))
   FROM t1;
   $
   *** Failure 3706 Syntax error: SELECT clause not supported in
   RESET...WHEN clause.