16.20 - Example: HELP STATISTICS on Multiple Individual Columns - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

Assume that you have collected the following statistics on an orders table.

     COLLECT STATISTICS COLUMN o_orderdatetime, COLUMN o_orderkey
     ON orders;

The following request displays summary statistics for the orders table. The statistics include the table cardinality, indicated by the report row with the column name *.

     HELP STATISTICS orders;
     *** Help information returned. 3 rows.
     *** Total elapsed time was 1 second.
Date     Time     Unique Values        Column Names
-------- -------- -------------------- ---------------------------------
10/08/16 18:14:36                  100 *
10/08/16 18:10:48                  100 o_orderdatetime
10/08/16 18:05:44                  100 o_orderkey