EXISTSNODE Method | XML Data Type | Teradata Vantage - 17.10 - EXISTSNODE - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - XML Data Type

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

Checks if a query returns a result.

Result Type

An INTEGER value as follows:
  • 0 if the query returns NULL or an empty string, or if the result of evaluating the query on the XML instance is an empty sequence.
  • 1 in all other cases.

If the input argument query is NULL, EXISTSNODE returns NULL.