You can select the system table OPTIMIZERSTATISTICS to query those statistical values stored in the database catalog that were generated by an UPDATE STATISTICS statement. Each row in the table describes statistics about indexes, columns, or the size of a table.
OPTIMIZERSTATISTICS
OWNER |
CHAR(32) |
Owner of a table for which statistics exist |
TABLENAME |
CHAR(32) |
Table name of a table for which statistics exist |
INDEXNAME |
CHAR(32) |
Index name of an index for which statistics exist |
COLUMNNAME |
CHAR(32) |
Name of a column for which statistics exist |
DISTINCTVALUES |
FIXED(10) |
Number
of different values if the current row describes a column or an index with one
column; |
PAGECOUNT |
FIXED(10) |
Number
of pages used by an index if the current row describes an index; |