혜온의 이것저것

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

Data Analysis/SQL

[HackerRank] Revising the Select Query II (MySQL)

혜온 :) 2022. 8. 3. 11:14

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:

풀이
select name from city
where population > 120000 && countrycode = 'USA'
Comments