We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 18
Weather Observation Station 18
Sort by
recency
|
2508 Discussions
|
Please Login in order to post a comment
SELECT CAST( ABS(MIN(LAT_N)- MAX(LAT_N)) + ABS(MIN(LONG_W)- MAX(LONG_W)) AS DECIMAL (10,4) ) FROM STATION
select round((abs(a-c)+abs(b-d)),4) from( select (select min(lat_n) from station) as a, (select min(long_w) from station) as b, (select max(lat_n) from station) as c, (select max(long_w) from station) as d ) as t;
if you want to do by defing each variable, otherwise u can use manhattan formula directly.
SELECT ROUND(ABS(MIN(LAT_N) - MAX(LAT_N)) + ABS(MIN(LONG_W) - MAX(LONG_W)), 4) FROM STATION;