WITH Statement Modifier - 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

Purpose

You can search a table using iterative self-join and set operations. Multiple definitions of the nonrecursive form can be used with a single SELECT statement by specifying different queries by name.

You can only use the WITH statement modifier with SELECT statements. The WITH statement modifier cannot be used with other DML statements.

Syntax - WITH Statement Modifier Nonrecursive Form



Syntax - WITH Statement Modifier Recursive Form