Im between cherry

Hackerrank | MySQL | Revising the Select Query II 본문

데이터분석/practice_query

Hackerrank | MySQL | Revising the Select Query II

meal 2020. 8. 27. 17:55

Revising the Select Query II

 

Problem

 

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:

 

 

SOLUTION

SELECT NAME
FROM CITY
WHERE population > 120000 AND countrycode = 'USA'
Comments