Distinct UDTs - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

Product
Preprocessor2 for Embedded SQL
Release Number
15.00
Language
English (United States)
Last Update
2018-09-27
dita:id
B035-2446
lifecycle
previous
Product Category
Teradata Tools and Utilities

Distinct UDTs

A distinct UDT is based on a single, predefined data type such as INTEGER or VARCHAR. It redefines an already‑defined SQL data type.

Example  

Define Salary as a Decimal(9,2), but with a function that prevents someone from entering a value of less than 20,000 or more than 2,000,000.