Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 25 Jul 2005 @ 15:01:19 GMT


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


Subj:   Re: Join Index and SelfJoin
 
From:   Diehl, Robert

Sandipan,

We can across a similar problem, but it was not a self join. Ours needed to join to a reference table twice.

The table was a small reference table with very little update or inserts.

We duplicated the table and maintain the second copy with triggers.

This will only work in your case when...

1) You have enough space to duplicate

2) updates and inserts into the table are manageable. This should be the case because JOIN INDEX maintenance will be a problem otherwise.


Sometimes self joins can be avoided by using an 'aggregate Window function' for example

avg(pctchg) over (partition by databasename order by calendar_date rows 3 preceding)


Thanks,

Bob Diehl
Travelcoity.com



     
  <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