WithimpliesrecursiveWithquery names are visible in accessed viewsWithnames even mask qualified table names (schema.table)- Without column list:
WITH name AS (SELECT…) - Query names in
withdon’t hide schema objects
The with clause defines “statement-scoped views”:
WITH query_name (column_name, …) AS (
SELECT …
FROM …
) [, …]
SELECT …
FROM query_nameRelated
Tutorial:
With— Organize Complex QueriesOther forms:
with recursive,within subquery,with recursivein subquery.Product specific forms:
withbeforeinsert, DML inwith.
Normative References
The with clause is defined in ISO/IEC 9075-2:2023 §7.17 as optional feature T121, “WITH (excluding RECURSIVE) in query expression”.

