Example: SHOW STATISTICS SEQUENCED Option - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

This example demonstrates how to use the SEQUENCED option with a SHOW STATISTICS (Optimizer Form) request.

The following SHOW STATISTICS request displays the statistics on columns x1 and y1 from table_1 with sequence numbers.

     SHOW STATISTICS VALUES SEQUENCED COLUMN x1, COLUMN y1 ON table_1;

The request produces a wide 2-column report with the headings SequenceNumber and RequestText, where the RequestText column also reports the current detailed statistics for columns x1 and y1 from table_1.