GROUP BY and USING TIMECODE Examples | Teradata Vantage - 17.00 - Examples: GROUP BY TIME and USING TIMECODE Clauses - Teradata Database

Teradata Vantageā„¢ - Time Series Tables and Operations

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-1208-170K

Table and Data Definition for GROUP BY TIME and USING TIMECODE Examples

The table defined below is used in the following examples, in addition to the tables specified in Table and Data Definition for Time Series Aggregates Examples.

CREATE TABLE non_pti_tbl_seq (
  timecode TIMESTAMP(6) NOT NULL,
  sequenceno INTEGER NOT NULL,
  buoyid INTEGER,
  salinity INTEGER,
  temperature INTEGER);  

INSERT INTO non_pti_tbl_seq
SELECT TD_TIMECODE, TD_SEQNO, buoyid, salinity, temperature FROM ocean_buoys_seq;