Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Tue, 02 May 2006 @ 20:25:53 GMT





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




Subj:   Re: Distance calcuations
 
From:   Woworsky, Armin



Hi Bob

Sorry i have no other idea as also to use a product join. I have a question regarding your function my_dist. Is it a udf and if so, are willing to share the code. I have to do the same thing within the next month. :-)

The only thing i would change is to use a qualify by row_number() over (partition by a.customer_id order by distance asc) = 1 to ensure to get really one record.


Thanx Armin





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