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
|
2558 Discussions
|
Please Login in order to post a comment
SELECT CAST(ROUND(ABS(MAX(LAT_N) - MIN(LAT_N)) + ABS(MAX(LONG_W) - MIN(LONG_W)),4) AS DECIMAL (10,4)) from STATION;
This worked for me: SELECT ROUND((MAX(LAT_N) - MIN(LAT_N)) + (MAX(LONG_W) - MIN(LONG_W)), 4) FROM STATION;
:)
WITH P AS ( SELECT MIN(LAT_N) AS a, MIN(LONG_W) AS b, MAX(LAT_N) AS c, MAX(LONG_W) AS d FROM STATION ) SELECT ROUND(ABS(a - c) + ABS(b - d), 4) AS Manhattan_Distance FROM P;
This worked for me
SELECT ROUND( ABS(MAX(LAT_N)-MIN(LAT_N)) + ABS(MAX(LONG_W)-MIN(LONG_W)), 4) FROM STATION ;
select round(abs(a-c)+ abs(b-d),4) from ( select min(lat_n) as a, min(long_w) as b, max(lat_n) as c, max(long_w) as d from station ) as combined