Snoopy [해커랭크/SQL] 2. Revising the Select Query II
코딩테스트/해커랭크 SQL

[해커랭크/SQL] 2. Revising the Select Query II

Sooyoon Jeong 2022. 12. 11.

🤔 문제 분석

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"

댓글