Example Query - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.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');