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

When a method in a subclass overrides a method in superclass, it is still possible to call the overridden method using super keyword - Hacker Rank Solution.

Java's System.out.printf function can be used to print formatted output. The purpose of this exercise is to test your understanding of formatting output using printf. To get you started, a portion of the solution is provided for you in the editor; you must format and print the input to complete the solution.