문제
Query a list of CITY and STATE from the STATION table.
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
코드
SELECT city, state
FROM Station
풀이
Station 테이블에서 city, state 조회
Weather Observation Station 1 | HackerRank
Write a query to print the CITY and STATE for each attribute in the STATION table.
www.hackerrank.com
반응형
'Algorithm > MySQL' 카테고리의 다른 글
[해커랭크(HackerRank)] Weather Observation Station 6 (MySQL) (0) | 2021.06.28 |
---|---|
[해커랭크(HackerRank)] Select By ID (MySQL) (0) | 2021.06.28 |
[해커랭크(HackerRank)] Revising the Select Query I(MySQL) (0) | 2021.06.28 |
[해커랭크(HackerRank)] Select All (MySQL) (0) | 2021.06.28 |
[MySQL] 상위 10개만 조회하기 (0) | 2021.06.28 |