16.20 - Cast Method for a Distinct Type - 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)

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.