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
Published
July 2021
Language
English (United States)
Last Update
2021-08-13
dita:mapPath
fsi1592016213432.ditamap
dita:ditavalPath
fsi1592016213432.ditaval

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;