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.
with CTE 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) from CTE;
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 18
You are viewing a single comment's thread. Return to all comments →
with CTE 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) from CTE;