WITH DELETED ROWS Option | SQL SELECT Statements | Teradata Vantage - WITH DELETED ROWS - Advanced SQL Engine - Teradata Database

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
vjt1596846980081.ditamap
dita:ditavalPath
vjt1596846980081.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantageā„¢

Include deleted rows in the query processing for a single load isolated table.

ANSI Compliance

The WITH DELETED ROWS clause is a Teradata extension to the ANSI SQL:2011 standard.

Required Privileges

In addition to the SELECT privilege, you must have the DROP TABLE privilege to execute this special read operation on the load isolated table.

If the table is associated with row-level security (RLS) constraints, you must have appropriate row-level security. RLS checks are applied on all rows, including logically deleted rows.

Locking Modifiers and the WITH DELETED ROWS Option

A locking modifier, if specified, is ignored when you specify the WITH DELETED ROWS option.

Join Indexes and the WITH DELETED ROWS Option

You cannot include join indexes in the SELECT statement when you specify the WITH DELETED ROWS option.