Specifying Subqueries - Teradata Database - Teradata Vantage NewSQL Engine

SQL Data Manipulation Language

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
fbo1512081269404.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™
The rules and restrictions are:
  • You can specify up to 64 levels of nesting of subqueries. Each subquery can specify a maximum of 128 tables or single-table views.

    This limit is established using the DBS Control field MaxParseTreeSegs. The value for MaxParseTreeSegs must be set to 256 or higher define an upper limit of 64 subquery nesting levels.

    See Teradata Vantage™ - Database Utilities , B035-1102 , for information about how to change the MaxParseTreeSegs setting in the DBS Control record.

  • Subqueries in search conditions cannot contain SELECT AND CONSUME statements.
  • Subqueries in search conditions cannot specify the TOP n operator.