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
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1146-175K
Language
English (United States)

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