15.10 - Example: SHOW STATISTICS SEQUENCED Option - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Language
English (United States)
Last Update
2018-06-05
dita:mapPath
SQL_DDL_15_10.ditamap
dita:ditavalPath
ft:empty

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.