Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting from distance for geography coordinates
Message
De
22/11/2011 11:09:18
 
 
À
22/11/2011 11:08:26
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01529492
Message ID:
01529518
Vues:
31
>>The where clause restricts to distances < = 250 km - that clause calculates the distance
>>
>>So I would add a select item
>>
>> 3958.75586574*ACOS(CASE WHEN Temp > 1 THEN 1 WHEN Temp < -1 THEN -1 ELSE Temp END)  as Distance
>>
>
>Thanks, this works.


Thought I would
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform