16.20 - 例: TD_SEQUENCED_COUNTの使用 - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL日付と時刻の関数および式

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
2019年3月
Content Type
プログラミング リファレンス
Publication ID
B035-1211-162K-JPN
Language
日本語 (日本)
WITH subtbl(flight_id, duration) AS
     (SELECT flight_id, duration FROM FlightExp)
SELECT * FROM TABLE (
     TD_SYSFNLIB.TD_SEQUENCED_COUNT(NEW VARIANT_TYPE(subtbl.flight_id),
                                    subtbl.duration)
RETURNS (flight_id INT, cnt INT,
     duration PERIOD(TIMESTAMP(6) WITH TIME ZONE))
HASH BY flight_id /* input data is redistributed on column, flight_id */
LOCAL ORDER BY flight_id, duration) /* input