SELECT
*,ROUND(
6378.138 * 2 * ASIN(
SQRT(
POW( SIN(( 23.129163 * PI()/ 180-latitudes * PI()/ 180 )/ 2 ), 2 )
+ COS( 23.129163 * PI()/ 180 )
* COS( latitudes * PI()/ 180 )
* POW( SIN(( 113.264435 * PI()/ 180-longitudes * PI()/ 180 )/ 2 ), 2 )))* 1000
) AS juli
FROM
distance
ORDER BY
juli ASC