Generate an EXPLAIN with BTEQ | Teradata Vantage - Generating an EXPLAIN with BTEQ - Analytics Database - Teradata Vantage

Database Administration

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-10-04
dita:mapPath
pgf1628096104492.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
ujp1472240543947
lifecycle
latest
Product Category
Teradata Vantage™

To generate an EXPLAIN for an SQL request, add the word “EXPLAIN” at the beginning of the request.

For example, the following SQL performs an EXPLAIN on a SELECT statement:

EXPLAIN SELECT * FROM Employee;

If you want a dynamic request plan instead, issue DYNAMIC EXPLAIN request. For example,

DYNAMIC EXPLAIN SELECT * FROM Employee;

Related Information

Topic Resources for Further Information
Syntax and options for the EXPLAIN request modifier Teradata Vantage™ - SQL Data Manipulation Language, B035-1146
Interpreting the output of the EXPLAIN request modifier for various request types SQL Request and Transaction Processing, B035-1142