Example: Simple DELETE on an ANSI Valid-Time Table - Analytics Database - Teradata Vantage

ANSI Temporal Table Support

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
jqu1628112571823.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
esa1472244798285
lifecycle
latest
Product Category
Teradata Vantage™

A simple DELETE statement without temporal qualification operates just as a DELETE on a nontemporal table, completely deleting rows that qualify for deletion:

DELETE FROM employee_vt WHERE ename=’Ash’;

SELECT * FROM employee_vt;

Output:

 eid ename terms   job_start     job_end
---- ----- ----- ----------- -----------
1005 Alice  TW11  2004/12/01  2005/12/01
1010 Mike   TW07  2015/01/01  2016/12/31
1005 Alice  PW11  2005/12/01  9999/12/31
1001 Sania  TW08  2002/01/01  2006/12/31
1004 Fred   PW12  2001/05/01  9999/12/31
1003 SRK    TM02  2004/02/10  2005/02/09