You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tasks/42.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,21 +3,45 @@
3
3
<imgsrc="./art/42.png"alt="solution" >
4
4
5
5
#### eng:
6
+
A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes (LAT_N) from STATION and round your answer to decimal places.
6
7
8
+
Input Format
9
+
10
+
The STATION table is described as follows:
7
11
8
12
9
13
#### рус:
14
+
Медиана определяется как число, отделяющее верхнюю половину набора данных от нижней половины. Запросите медиану
15
+
северных широт (LAT_N) из STATION и округлите ответ до десятичных знаков.
16
+
17
+
Формат ввода
10
18
19
+
Таблица STATION описывается следующим образом:
11
20
12
21
13
22
#### код с коментариями:
14
23
```sql
15
-
24
+
SELECT/* выбрать данные */
25
+
ROUND(LAT_N,4) /* столбец */
26
+
FROM/* из таблицы */
27
+
(SELECT/* выбрать данные */
28
+
LAT_N, /* столбец */
29
+
PERCENT_RANK() OVER (ORDER BY LAT_N) AS PERCENTILE /* столбец с псевданимом */
0 commit comments