CodingSpace

[HackerRank/SQL] Aggregation - Weather Observation Station 14 본문

HackerRank/SQL

[HackerRank/SQL] Aggregation - Weather Observation Station 14

개발자_조이킴 2022. 8. 1. 09:18

Problem. Basic Select - Weather Observation Station 14


Link.

https://www.hackerrank.com/challenges/weather-observation-station-14/problem?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=7-day-campaign 

 

Weather Observation Station 14 | HackerRank

Query the greatest value of the Northern Latitudes from STATION that are under 137.2345 and truncated to 4 decimal places.

www.hackerrank.com


Description.

Query the greatest value of the Northern Latitudes (LAT_N) from STATION that is less than 137.2345.

Truncate your answer to 4 decimal places.

 

STATION 테이블


Key Point. 

TRUNCATE,


My Answer. 

SELECT
TRUNCATE(MAX(LAT_N), 4)
FROM STATION
WHERE LAT_N < 137.2345

References. 

Comments