Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 29 Oct 2010 @ 13:29:14 GMT


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


Subj:   Global Temporary table and collect stats
 
From:   Prasad Kavil Kambrath

Hi Experts,

I am facing an issue with collect stats and operation of Global temp table.

     bteq <


My script is like this

     Insert values into GTT;

     Collect stats on index of GTT;

     INSERT into TBL1 by joining TBL2 and GTT;

     EOF

Here issues are 1. Collect stats fails and 2.values inserted into GTT is deleted by execution reaches the second insert statement

If I use BT and ET, then values in GTT persists till second insert statement, but I cant collect stats on GTT ( which is very necessary for me)

I tried the below option, still it fails.

     bteq <

My script is like this


Insert values into GTT;
     Collect stats on index of GTT;

     INSERT into TBL1 by joining TBL2 and GTT;

     EOF

It would be great if you could help me on this.


Thanks,

Prasad K K



     
  <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: 27 Dec 2016