Collecting Statistics on Null
When you collect statistics, Teradata Database records three different null counts: NumNulls, PNullUniqueValueCount, and AllNulls.
x y
------ -------
1 a
? b
? ?
4 ?
? ?
Use the SHOW STATISTICS statement to report the number of nulls after collecting statistics. By considering NumNulls, All-Nulls, and PNullUniqueValueCount counts, Teradata can better estimate the number of unique values in the presence of nulls.
Collecting Statistics on the Data Dictionary
For information on collecting statistics on the Data Dictionary, see “Collecting Statistics on Data Dictionary Tables” on page 200.