Query a count of the number of cities in CITY having a Population larger than 100,000.
Input Format
The CITY table is described as follows:

- query count of number of cities ==> SELECT COUNT(ID)
- in CITY table ==> FROM CITY
- Population larger than 100000 ==> WHERE POPULATION > 100000
SELECT COUNT(ID)
FROM CITY
WHERE POPULATION > 100000;

'Algorithm > SQL' 카테고리의 다른 글
| [SQL][HackerRank] Revising Aggregations - Averages (0) | 2020.06.11 |
|---|---|
| [SQL][HackerRank] Revising Aggregations - The Sum Function (0) | 2020.06.11 |
| [SQL][HackerRank] The PADS (0) | 2020.06.11 |
| [SQL][HackerRank] Type of Triangle (0) | 2020.06.11 |
| [SQL][HackerRank] Placements (0) | 2020.06.11 |
