17.05 - Example: EXPAND ON for a QUARTER_BEGIN Anchor Period - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
vnq1596660420420.ditamap
dita:ditavalPath
hoy1596145193032.ditaval

This example expands employee using a QUARTER_BEGIN anchor period.

     SELECT eid, ename, BEGIN(expd) AS tsp
     FROM employee
     EXPAND ON jobdperiod expd BY ANCHOR PERIOD QUARTER_BEGIN;
eid --- ename ----- tsp ---
1001 Xavier 2008-04-01