I bet DATEFIRED has 5842 NULLs - or had at the time you gathered the stats. At 01:12 AM 5/31/2007, Ronnie Doggart wrote:
Hi, Oracle 126.96.36.199 on Oracle Enterprise LinuxWe looking at reducing the amount of time taken to gather statistics on our production database. Initially we where using dbms_stats.gather_schema_stats with compute and cascade=>true. We want to use an estimate on the tables and compute on the indexes so we split the analysis up. However during testing we noticed that some tables had stats that where inconsistent. For instance using dbms_stats.gather_table_stats with compute the number of rows reported as sampled varied on a column per column basis in the same table e.gTABLE_NAME COLUMN_NAME DATA_TYPE NUM_DISTINCT SAMPLE_SIZE LGNCC_ESCRULE ESCRULESTATUS NUMBER 4 14563 LGNCC_ESCRULE DATEFIRED DATE 4896 8721Does a compute not read all the rows in a table for each column, the table above has 14563 rows.
Regards Wolfgang Breitling Centrex Consulting Corporationwww.centrexcc.com
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email ______________________________________________________________________