16.20 - Example: ST_Area - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Geospatial Data Types

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1181-162K
Language
English (United States)
   CREATE TABLE sample_shapes (skey INTEGER, shape ST_Geometry);

   INSERT sample_shapes 
     (1,'Polygon((30 30, 30 60, 60 60, 60 30, 30 30))');

   SELECT skey
   FROM sample_shapes
   WHERE (shape.ST_Area() < 100.5);