🤔 문제 분석
1) Query the NAME field
2) for all American cities in the CITY table
3) with populations larger than 120000.
4) The CountryCode for America is USA.
💡 풀이
SELECT NAME
FROM CITY
WHERE POPULATION > 120000
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] 1. Revising the Select Query I (0) | 2022.12.11 |
댓글