User-Defined Functions (UDFs)
OLE DB Provider for Teradata and Teradata Database support user-defined functions (UDFs), including the execution of DDLs to create UDFs and DMLs that use UDFs.
For the full discussion of the syntax, format, and rules for creating and invoking UDFs, see the SQL External Routine Programming manual.