[hackerrank] Prepare > SQL > Aggregation > Weather Observation Station 20
[문제]
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.
Input Format
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
[MYSQL]
[ORCALE]
select round(median(lat_n),4)
from station;
반응형
'HackerRank > SQL' 카테고리의 다른 글
[hackerrank] Revising Aggregations - Averages (0) | 2022.08.24 |
---|---|
[hackerrank] Revising Aggregations - The Sum Function (0) | 2022.08.24 |
[hackerrank] Revising Aggregations - The Count Function (0) | 2022.08.22 |
[hackerrank] New Companies (0) | 2022.08.22 |
[hackerrank] Binary Tree Nodes (0) | 2022.08.18 |