Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 28 Sep 2006 @ 21:43:58 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Explain Plan Question
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, September 28, 2006 17:33 -->

  I am running a query where I have identical NUPI indices on two tables. Each index is 3 columns. I have collect statistics on each column in the index as well as the index itself. When I run an explain plan, it tells me that it is estimating the output with low confidence (see below). I would have expected this to be high confidence since I have collect statistics.  


  Can anyone explain this to me?  


I think the Optimizer knows exactly how many NULLs you have in each one of the two NULLable columns in the NUPI for both tables, but it is not able to estimate accurately how many rows will satisfy the residual conditions applied to both columns in each row processed by the Merge Join, both on the left (alias a) and on the right (alias b). I guess these conditions have been explicitly generated by the Parser, they are not present in your SQL code.



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023