Example: Join Condition DELETE With FROM Clause and Correlation Name - Analytics Database - Teradata Vantage

SQL Data Manipulation Language

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
2024-10-04
dita:mapPath
pon1628111750298.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
esx1472246586715
lifecycle
latest
Product Category
Teradata Vantageā„¢

The following example deletes employees from the employee table using a join on the employee and department tables.

     DELETE employee
     FROM department AS d, employee
     WHERE employee.dept_no = d.dept_no
     AND   salary_pool < 50000;