From 90042ab65af7b1081fd9ca055966b2cf6d0d3854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 26 Oct 2019 20:27:52 +0300 Subject: [PATCH] distance between airports in poles --- MTM/task4-straipsnis/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/MTM/task4-straipsnis/README.md b/MTM/task4-straipsnis/README.md index b4463ee..1035ce4 100644 --- a/MTM/task4-straipsnis/README.md +++ b/MTM/task4-straipsnis/README.md @@ -230,6 +230,23 @@ LIMIT 15; Grise Fiord Airport | Canada | +76.4261,-82.9092 ``` +**Atstumas tarp šiauriausio ir piečiausio oro uosto?** + +``` +SELECT + to_char( + st_distance ( + (SELECT geom FROM airports WHERE name = 'South Pole Station Airport'), + (SELECT geom FROM airports WHERE name = 'Alert Airport'), + TRUE + )/1000, + '99999.99') AS km; + + km +----------- + 19168.26 +``` + Pabaigai --------