🤔 문제 분석
1) Query all columns
2) for all American cities in the CITY table
3) with populations larger than 100000.
4) The CountryCode for America is USA.
💡 풀이
SELECT *
FROM CITY
WHERE POPULATION > 100000
AND COUNTRYCODE = "USA"
'코딩테스트 > 해커랭크 SQL' 카테고리의 다른 글
[해커랭크/SQL] 6. Weather Observation Station 1 (0) | 2022.12.11 |
---|---|
[해커랭크/SQL] 5. Japanese Cities' Names (0) | 2022.12.11 |
[해커랭크/SQL] 4. Select By ID (0) | 2022.12.11 |
[해커랭크/SQL] 3. Select All (0) | 2022.12.11 |
[해커랭크/SQL] 2. Revising the Select Query II (0) | 2022.12.11 |
댓글