Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 05 Mar 2008 @ 17:23:27 GMT


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


Subj:   Re: Recursive Query
 
From:   Anomy Anom

<-- Anonymously Posted: Wed, 5 Mar 2008 10:40 -->

You need to eliminate self-join of the "seed" rows to themselves from the recursion, e.g.

     WHERE THIS_LEVEL.ACCOUNT_NUMBER_NEW = PREV_LEVEL.ACCOUNT_NUMBER_OLD
     AND THIS_LEVEL.ACCOUNT_NUMBER_NEW <> THIS_LEVEL.ACCOUNT_NUMBER_OLD


     
  <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