DB & SQL/해커랭크
[해커랭크/MYSQL] - (2) Revising the Select Query II
Lung Fish
2023. 6. 21. 19:55
🔍 예상 검색어
더보기
# 해커랭크
# SQL
# Revising the Select Query II
해당 포스팅은 해커랭크 SQL "Revising the Select Query II " 문제에 대해 풀이한 내용입니다.
Revising the Select Query II | HackerRank
Revising the Select Query II | HackerRank
Query the city names for all American cities with populations larger than 120,000.
www.hackerrank.com
▶ 문제
Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA. The CITY table is described as follows:
▶ 제출코드
SELECT NAME
FROM CITY
WHERE POPULATION >= 120000 AND COUNTRYCODE = 'USA';
▶ 실행결과