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

Time Series Tables and Operations

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tuc1628112453431.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
sfz1493079039055
lifecycle
latest
Product Category
Teradata Vantageā„¢

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

The following table defined is used in the 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;