Query the Western Longitude (LONG_W)where the smallest Northern Latitude (LAT_N) in STATION is greater than 38.7780. 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.
- query LONG_W ==> SELECT LONG_W
- round answer to 4 decimal places ==> SELECT ROUND(LONG_W, 4)
- in STATION table ==> FROM STATION
- greater than 38.7780 ==> WHERE LAT_N > 38.7780
- for the smallest LAT_N ==> ORDER BY LAT_N LIMIT 1
SELECT ROUND(LONG_W, 4)
FROM STATION
WHERE LAT_N > 38.7780
ORDER BY LAT_N LIMIT 1;
'Algorithm > SQL' 카테고리의 다른 글
[SQL][HackerRank] Weather Observation Station 19 (0) | 2020.06.10 |
---|---|
[SQL][HackerRank] Weather Observation Station 18 (0) | 2020.06.10 |
[SQL][HackerRank] New Companies (0) | 2020.06.10 |
[SQL][HackerRank] Binary Tree Nodes (0) | 2020.06.09 |
[SQL][HackerRank] Employee Salaries (0) | 2020.06.09 |