Example Query - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantageā„¢

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');