15.10 - Clip - Teradata Database

Teradata Database SQL Geospatial Types

prodname
Teradata Database
vrm_release
15.10
category
Programming Reference
featnum
B035-1181-151K

Returns a GeoSequence type containing the subset of points and associated data that lie between the two timestamp input arguments.

 

Argument …

Specifies …

startT

a TIMESTAMP value for the beginning timestamp.

endT

a TIMESTAMP value for the ending timestamp.

Returns GeoSequence.

GeoSequence

CREATE TABLE sample_shapes(skey INTEGER, shape ST_Geometry);
 
INSERT INTO sample_shapes ( 100,'GeoSequence( (10 10, 15 15, -2 0) ,(2007-03-14 01:35:00, 2007-03-14 01:35:05, 2007-03-14 01:35:08),(1222, 1223, 1224),(2, 12.1, 3.14159, 2.78128, -10, -11, 100.1))' );
 
SELECT shape.Clip(TIMESTAMP '2008-07-31 10:36:02.123456', 
                  TIMESTAMP '2008-07-31 11:36:02.123456')
FROM sample_shapes;