본문 바로가기
DB/SQL

HackerRank_02. Revising the Select Query II

by _S0_H2_ 2020. 6. 11.
728x90
반응형

문제 : Query the names of all American cities in CITY with populations larger than 120000. The CountryCode for America is USA.

 

select Name
from CITY
where COUNTRYCODE = 'USA'
    AND POPULATION > 120000;

Scottsdale

Corona

Concord

Cedar Rapids

728x90
반응형

'DB > SQL' 카테고리의 다른 글

HackerRank_06. Japanese Cities' Names  (0) 2020.06.11
HackerRank_05.Japanese Cities' Attributes  (0) 2020.06.11
HackerRank_04. Select By ID  (0) 2020.06.11
HackerRank_03. SELECT ALL  (0) 2020.06.11
HackerRank_01. Revising the Select Query I  (0) 2020.06.11