17.10 - Example Query - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

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

Consider this table that has a circle_t column:

CREATE circle_table(pkey INTEGER, circle circle_t);

This query requires that a transform exists for the circle_t UDT that transforms to the client representation (in this case VARCHAR(80)):

SELECT * FROM circle_table;

This query requires that an ordering exists for the circle_t UDT:

SELECT *
FROM circle_table
WHERE circle < NEW circle_t().x(128).y(128).radius(1).color('RED');