[HackerRanK] Revising the Select Query

🌹Haeri Lee·2023년 1월 16일
0

[MySql] 문제풀이

목록 보기
11/15
post-custom-banner

Q. 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:

☑️ 정답

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

Q. Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA.

☑️ 정답

select name
from city
where population >= 12000
and countrycode = 'USA'
limit 4;
profile
안녕하세요 공부한 내용을 기록하기 위해서 시작했습니다.
post-custom-banner

0개의 댓글