YUKIโs DEV BLOG ๐ป
/
Coding Test
/
SQL ์ฐ์ต ๋ฐ ์ฝ๋ฉํ ์คํธ
/
Weather Observation Station 19
Search
Share
Weather Observation Station 19
Weather Observation Station 19 | HackerRank
Query the Euclidean Distance between two points and round to 4 decimal digits.
SELECT
ROUND
(
SQRT
(
POW
(
(
a
-
b
)
,
2
)
+
POW
(
(
c
-
d
)
,
2
)
)
,
4
)
FROM
(
SELECT
MAX
(
LAT_N
)
a
,
MIN
(
LAT_N
)
b
,
MAX
(
LONG_W
)
c
,
MIN
(
LONG_W
)
d
FROM
STATION
)
T
JavaScript
๋ณต์ฌ