CODING TEST/SQL : HackerRank

[MySQL] Revising the Select Query I

주 녕 2021. 3. 26. 17:41
반응형

 SQL  >  Basic Select  >  Revising the Select Query I 

 Problem 

Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA. The CITY table is described as follows:

 

 My Answer 

SELECT *
FROM CITY
WHERE POPULATION > 100000 AND COUNTRYCODE = 'USA'
반응형