본문 바로가기
DB/SQL

HackerRank_01. Revising the Select Query I

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

문제 : Query all columns for all American cities in CITY with populations larger than 100000. The CountryCode for America is USA.

 

select *
from CITY
where COUNTRYCODE = 'USA'
    AND POPULATION > 100000;

3878 Scottsdale USA Arizona 202705

3965 Corona USA California 124966

3973 Concord USA California 121780

3977 Cedar Rapids USA Iowa 120758

3982 Coral Springs USA Florida 117549

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_02. Revising the Select Query II  (0) 2020.06.11