반응형
▶ SQL > Aggregation > Revising Aggregations - The Count Function
Problem
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:
My Answer
SELECT COUNT(*)
FROM CITY
WHERE POPULATION > 100000
반응형
'CODING TEST > SQL : HackerRank' 카테고리의 다른 글
[MYSQL] Population Density Difference (0) | 2021.05.13 |
---|---|
[MYSQL] Japan Population (0) | 2021.05.13 |
[MySQL] Average Population (0) | 2021.04.21 |
[MySQL] Revising Aggregations - Averages (0) | 2021.04.20 |
[MySQL] Employee Salaries (0) | 2021.04.15 |
[MySQL] Employee Names (0) | 2021.04.15 |
[MySQL] Higher Than 75 Marks (0) | 2021.04.13 |
[MySQL] Weather Observation Station 12 (0) | 2021.04.07 |
댓글