Milky's note

[HackerRank](E) Revising the Select Query II 본문

SQL/SQL 코딩 테스트-HackerRank

[HackerRank](E) Revising the Select Query II

밀뿌 2022. 3. 16. 14:19

https://www.hackerrank.com/challenges/revising-the-select-query-2/problem?isFullScreen=true 

 

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:

 

[답]

- oracle

select name from city
where population > 120000
and countrycode = 'USA';
Comments