I would like to obtain the distance between two points in sql server, the problem I had previously, is that I had the data latitude and longitude in a single column, which I already managed to solve that problem through a split, now I would like to know how I can use the result to be able to calculate the distance between two points.
SELECT TOP 10 [LDPID],[LatLon], SUBSTRING(LatLon, 1,9) AS LATITUD, SUBSTRING(LatLon, 11,19) AS LONGITUD FROM LDP
This is my result of the split
Now I would like to calculate the distance between the two points, I have been guided by this article but I can not find a way to use the results to calculate the distance. link