Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Thu, 17 May 2001 @ 21:20:14 GMT





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




Subj:   Re: SQL challenge
 
From:   Bill Hassinger



I don't know if it will be as accurate enough for your needs, but instead of a circle, what if you worked with a triangle using the Pythagorean Theorem?

Distance = square root of ((lat2 - lat1)squared + (log2 - log1)squared)

I think SQL has exponents and square root that will allow this calculation.

Bill Hassinger
Mn Department of Human Services





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