Examples | UDT Expression | Teradata Vantage - 17.10 - Example: Column Name - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

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

The following statement creates a table that defines an address column named location:

CREATE TABLE italian_sales
  (location address
  ,sales DECIMAL(8,2));

The location column reference in the following statement returns an address UDT expression.

INSERT INTO italian_sales
   SELECT location, sales
   FROM european_sales
   WHERE region = 1151;