XMLAGG Function | XML Data Type | Teradata Vantage - XMLAGG - Advanced SQL Engine - Teradata Database

XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
kxe1590704060061.ditamap
dita:ditavalPath
kxe1590704060061.ditaval
dita:id
B035-1140
lifecycle
previous
Product Category
Teradata Vantageā„¢

Performs an aggregate of multiple rows to construct an XML value.

XMLAGG aggregates multiple rows to construct an XML value. During aggregation, for a given collection of rows processed by the function, XML_value_expr is evaluated for every row and the resulting values are ordered according to the ORDER BY clause and concatenated according to the XML value concatenation semantics (same as XMLCONCAT), after eliminating NULLs.

Result Type

The return value is of XML type. The return value is based on the RETURNING clause. If the clause is not specified, the default is RETURNING SEQUENCE.