Teradata Database Recursive Query - Advanced SQL Engine - Teradata Database

Database Introduction

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
qia1556235689628.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1091
lifecycle
previous
Product Category
Teradata Vantageā„¢

A recursive query is a named query expression that references itself in its definition. The self-referencing capability gives the user a simple way to search a table using iterative self-join and set operations.

The recursive query feature benefits the user by reducing the complexity of the queries and allowing a certain class of queries to execute more efficiently.

Recursive queries are implemented using the WITH RECURSIVE clause in the statement and the RECURSIVE clause in the CREATE VIEW statement.