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),
CTE1 AS (SELECT (c-a) as p1,
(d-b) as p2
from CTE)
SELECT ROUND(ABS(p1+p2),4)
FROM CTE1
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), CTE1 AS (SELECT (c-a) as p1, (d-b) as p2 from CTE) SELECT ROUND(ABS(p1+p2),4) FROM CTE1