Saturday, May 03, 2025

Breaking News
>> Securing and encrypt View State and Cookies values  >> Page has one or more controls that do not correspond with   >> “The Controls collection cannot be modified because the control contains code blocks”  >> How to fix "Validation(): Element 'xxxx' is not supported  >> How to create a new session in ASP.NET programmatically  >> MySQL Database Backup using mysqldump command    

Editors Picks

Tuesday, June 19, 2012

distance between two latitude longitude points in mysql


SELECT (1000 * 6371 * ACOS(COS(RADIANS(23.2323)) * COS( RADIANS(LATITUDE))* COS(RADIANS(LONGITUDE) - RADIANS(77.7777))+ SIN(RADIANS(23.2323))* SIN(RADIANS(LATITUDE)))) AS distance FROM TableName HAVING distance < maxdis ORDER BY distance

No comments :

Post a Comment

Contact Us

Name

Email *

Message *