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

Time Series Tables and Operations

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
cxa1555383531762.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1208
lifecycle
previous
Product Category
Teradata Vantageā„¢

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;