|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/29/2008 5:40:04 PM
Posts: 7,
Visits: 11
|
|
Hi, i need help to use Teradata SQL function to calcuation a distance from point a to point b which are using Longitude and latitude.
Please helps...
thanks,
T-Nguyen
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 11/14/2008 4:57:32 PM
Posts: 78,
Visits: 97
|
|
I’m not sure whether you are asking for the formulas or just how to do it in SQL. Maybe you can provide the formula and how the data is represented and then someone could suggest a method.
My suggestion would be to write a UDF or create a UDT (User Defiend Type) that contains the earth coordinates. Then you can define the user defined methods (UDMs) that operate on that data type.
If you are just looking for the formulas you can google that and get all sorts of hits that might be useful to you.
|
|
|
|