16.20 - Getting the Value of a Nested Attribute - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

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

To get the value of a nested attribute in a structured UDT, follow these steps:

  1. Call FNC_GetStructuredAttributeByNdx to obtain the UDT handle of the next structured UDT attribute in the hierarchy.

    Repeat this step, passing in the newly obtained UDT handle as the udtHandle argument, n-2 times, where n is the nesting level of the target attribute.

  2. Call FNC_GetStructuredAttributeByNdx again, passing in the UDT handle of the structured UDT attribute that contains the target attribute.