15.10 - Example: Collecting Sampled Statistics - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

The following request is similar to that of “Example: Collecting Full Statistics.” However, sampled statistics on the index are collected instead of scanning the entire index.

     COLLECT STATISTICS 
       USING SAMPLE INDEX (empno, name) 
     ON employee;