새소식

IT/SQL

[해커랭크] Weather Observation Station 20

  • -
728x90
반응형

문제링크 : https://www.hackerrank.com/challenges/weather-observation-station-20/problem?isFullScreen=true

 

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 4 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.

 

🔉 문제 설명

 

중위수를 찾으세요.

북위도 중위수(LAT_N)를 쿼리하고 소수점 4자리로 반올림합니다.

 

SELECT ROUND(MEDIAN(LAT_N), 4)
FROM STATION;

 


 ⭐ Mysql에는 Medain 함수가 적용이 안된다.

Oralce로 푼 문제

728x90

'IT > SQL' 카테고리의 다른 글

[해커랭크] Top Competitors  (0) 2023.03.31
[해커랭크] The Report  (0) 2023.03.31
[해커랭크] New Companies  (0) 2023.03.31
[해커랭크] Binary Tree Nodes  (0) 2023.03.31
[해커랭크] Aggregation  (0) 2023.03.31
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.