Click here to Skip to main content
15,919,567 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
C#
Query the names of all American cities in CITY with populations larger than 120,000. The CountryCode for America is USA.
Posted
Updated 16-Jul-20 21:48pm
Comments
Sergey Alexandrovich Kryukov 19-Jan-16 15:05pm    
Query what source of data? :-)
-SA
Patrice T 19-Jan-16 15:09pm    
you know what you want, start to work now.

1 solution

Assuming your table name is Cities:

SQL
SELECT CityName
FROM Cities
WHERE CounrtyCOde = 'USA' AND Population>120000


For further information, please, see: MySQL :: MySQL 5.7 Reference Manual :: 13.2.9 SELECT Syntax[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900