SQL

[HackerRank/SQL] Revising the Select Query I

지구인 ㅣ 2022. 9. 5. 11:43

728x90

문제는 여기서 볼 수 있습니다.

 

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:

위의 CITY 테이블에서, population이 100000 보다 크고, CountryCode가 USA인 row를 추출하는 문제입니다.

 

코드는 아래와 같습니다.

select *
from city
where population > 100000 and countrycode = 'USA';

 

 

728x90