Quantcast
Channel: Teradata Developer Exchange - Blog activity for carrie's blog
Viewing all articles
Browse latest Browse all 1058

New opportunities for statistics collection in Teradata 14.0 - comment by pietro.nardella

$
0
0

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.


Viewing all articles
Browse latest Browse all 1058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>