XMLAGG Function | XML Data Type | Teradata Vantage - XMLAGG - Analytics Database - Teradata Vantage

Teradata Vantageā„¢ - XML Data Type - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-01-27
dita:mapPath
tkc1628112506748.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dgs1472251600184
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.