Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Fri, 11 Jun 2004 @ 14:53:08 GMT





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




Subj:   Re: Performance Improvement on this Query without Collecting Statistics
 
From:   Victor Sokovin



If the DATE table is indeed used only to add week IDs to the aggregates and the IDs can be calculated by a formula BCWEEKID=some_function(DATEID), then the aggregation could be done by using the daily_spend only. That would eliminate the join.

I don't know whether this applies to the OP's particular case, though. There might have been a good reason to use the DATE table for some "customized" week definitions which cannot be described by an easy formula.


Regards,

Victor





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008