Usage Notes - Teradata Database

SQL Data Manipulation Language

Product
Teradata Database
Release Number
16.10
Published
June 2017
Language
English (United States)
Last Update
2018-04-25
dita:mapPath
psg1480972718197.ditamap
dita:ditavalPath
changebar_rev_16_10_exclude_audience_ie.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata® Database

Specifying Subqueries

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