XMLAGG Syntax - Analytics Database - Teradata Vantage

XML Data Type

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-10-30
dita:mapPath
tkc1628112506748.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dgs1472251600184
lifecycle
latest
Product Category
Teradata Vantageā„¢
XMLAGG (
  XML_value_expr
  [ ORDER BY order_by_spec [,...] ]
  [ RETURNING { CONTENT | SEQUENCE } ]
)

Syntax Elements

order_by_spec
sort_key [ ASC | DESC ] [ NULLS { FIRST | LAST } ]
XML_value_expr
An instance of the XML type.
ORDER BY
The resulting values are ordered as follows:
  • ASC - in ascending order
  • DESC - in descending order
  • NULLS FIRST - Nulls are ordered first
  • NULLS LAST - Nulls are ordered last
RETURNING CONTENT
The return value is an XQuery document node.
RETURNING SEQUENCE
The return value is a sequence. This is the default.
sort_key