15.10 - FROM QCD_name - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Content Type
Programming Reference
Publication ID
B035-1144-151K
Language
English (United States)
Last Update
2018-06-05
FROM QCD_name
Specifies that the statistics to be retrieved are found in the TableStatistics table of the specified QCD database.
FOR QUERY query_ID

 
Value inserted into QCD.TableStatistics.QueryId by Teradata Database.
Each unique composite of query_ID and statistics_ID identifies a separate set of statistics in QCD.TableStatistics for a given column or index.
The default value is 0.
SAMPLEID statistics_ID

 
Value inserted into QCD.TableStatistics.StatisticsId by Teradata Database.
Each unique composite of query_ID and statistics_ID identifies a separate set of statistics in QCD.TableStatistics for a given column or index.
The default value is 1.
USING MODIFIED
For reporting the modified statistics stored in QCD.TableStatistics.ModifiedStats.
If you do not specify the USING MODIFIED option, the system reports the unmodified statistics stored in QCD.TableStatistics.StatisticsInfo.