Cast Method for a Distinct Type | UDM Code Examples | Teradata Vantage - 17.10 - Cast Method for a Distinct Type - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

This example shows the C code for a method that casts a meter distinct UDT to a foot distinct UDT. The method takes the meter value, calculates the equivalent number of feet, and returns the value as a foot distinct UDT.