Ciao Carrie,
I have a very simple and quick question regarding STATS and CURRENT STATS.
I create a table T and define some stats without insert any rows.
If I run HELP STATS ON T
I get the right estimation: 0 rows in summary ('*') and column where I define the stats.
If I run HELP CURRENT STATS ON T
I get 1 row on each stats.
Why ?
I'm asking this because many times in a query with a lot of joins the plan build by the optimizer can be very different with 0 estimation instead of 1 row estimation !
Thanks & regards,
Pietro.
Ciao Carrie,
I have a very simple and quick question regarding STATS and CURRENT STATS.
I create a table T and define some stats without insert any rows.
If I run
HELP STATS ON T
I get the right estimation: 0 rows in summary ('*') and column where I define the stats.
If I run
HELP CURRENT STATS ON T
I get 1 row on each stats.
Why ?
I'm asking this because many times in a query with a lot of joins the plan build by the optimizer can be very different with 0 estimation instead of 1 row estimation !
Thanks & regards,
Pietro.