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:
CITY.jpg


Solution:


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

Popular posts from this blog

In this problem, you will practice your knowledge on interfaces - Hacker Rank Solution.

Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table.

Query the Name of any student in STUDENTS who scored higher than 75 Marks - Hacker Rank Solution.