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 Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023