HackerRank - Revising the Select Query II

April - 25/2025

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:

Field Type
ID NUMBER
Name VARCHAR2(17)
COUNTRYCODE VARCHAR2(3)
DISTRICT VARCHAR2(20)
POPULATION NUMBER

# Solution

            
    SELECT NAME
    FROM CITY
    WHERE COUNTRYCODE = 'USA'
    AND POPULATION > 120000;
        

Post: