GROUP BY and USING TIMECODE Examples | Teradata Vantage - 17.10 - Examples: GROUP BY TIME and USING TIMECODE Clauses - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Time Series Tables and Operations

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1208-171K
Language
English (United States)

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;