문제
Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA.
The CITY table is described as follows:
코드
SELECT *
FROM CITY
WHERE population > 100000
AND countrycode = 'USA'
풀이
- CITY 테이블의 모든 컬럼 조회
- population이 100000명보다 커야함
반응형
'Algorithm > MySQL' 카테고리의 다른 글
[해커랭크(HackerRank)] Weather Observation Station 6 (MySQL) (0) | 2021.06.28 |
---|---|
[해커랭크(HackerRank)] Select By ID (MySQL) (0) | 2021.06.28 |
[해커랭크(HackerRank)] Weather Observation Station 1 (MySQL) (0) | 2021.06.28 |
[해커랭크(HackerRank)] Select All (MySQL) (0) | 2021.06.28 |
[MySQL] 상위 10개만 조회하기 (0) | 2021.06.28 |