728x90
❓ Question
https://www.hackerrank.com/challenges/revising-aggregations-the-count-function
❗ Answer
SELECT COUNT(name)
FROM city
WHERE population > 100000;
📌 Discussion
- where에서 조건문을 걸어주고 count로 집계
'SQL 문제풀이' 카테고리의 다른 글
[해커랭크 SQL] Aggregation - Weather Observation Station 2 (0) | 2023.08.25 |
---|---|
[해커랭크 SQL] Aggregation - Top Earners (0) | 2023.08.25 |
[해커랭크 SQL] Aggregation - The Blunder (0) | 2023.08.23 |
[해커랭크 SQL] Aggregation - Population Density Difference (0) | 2023.08.23 |
[해커랭크 SQL] Aggregation - Japan Population (0) | 2023.08.23 |