728x90
❓ Question
https://www.hackerrank.com/challenges/weather-observation-station-4
❗ Answer
SELECT COUNT(city)-COUNT(DISTINCT city)
FROM station;
📌 Discussion
- COUNT로 레코드의 개수를 집계
'SQL 문제풀이' 카테고리의 다른 글
[해커랭크 SQL] Basic Select - Weather Observation Station 7 (0) | 2023.08.18 |
---|---|
[해커랭크 SQL] Basic Select - Weather Observation Station 6 (0) | 2023.08.16 |
[해커랭크 SQL] Basic Select - Weather Observation Station 3 (0) | 2023.08.16 |
[해커랭크 SQL] Basic Select - Weather Observation Station 1 (0) | 2023.08.16 |
[해커랭크 SQL] Basic Select - Japanese Cities' Names (0) | 2023.08.16 |