기록하는 습관

[SQL] (해커랭크) Revising the Select Query II 본문

SQL

[SQL] (해커랭크) Revising the Select Query II

Avalla 2023. 8. 13. 16:17

Problem

HackerRank > Prepare > SQL > Basic Select > Revising the Select Query II

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:

Solution

더보기
SELECT NAME
FROM CITY
WHERE 1=1
and COUNTRYCODE = 'USA'
and POPULATION > 120000