CODING TEST/SQL : HackerRank
[MySQL] Revising the Select Query II
주 녕
2021. 3. 26. 17:53
반응형
SQL > Basic Select > Revising the Select Query II
Problem
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:
My Answer
SELECT NAME
FROM CITY
WHERE POPULATION > 120000 AND COUNTRYCODE = 'USA'
반응형