WITH clause
Description
Grammar Syntax
[ WITH [RECURSIVE] common_table_expression [, common_table_expression , ...] ]
--Where common_table_expression can be either non-recursive or recursive.
--Following is the non-recursive form:
CTE_table_name [ ( column_name [, ...] ) ] AS ( query )
--Following is the recursive form of common_table_expression:
CTE_table_name (column_name [, ...] ) AS ( recursive_query )Sample Source Patterns
Recursive form
Input Code:
ID
NAME
MANAGER_ID
Output Code:
ID
NAME
MANAGER_ID
Non recursive form
Input Code:
EMPLOYEE
MANAGER
Output Code:
EMPLOYEE
MANAGER
Related EWIs
Last updated
