728x90
반응형
https://www.hackerrank.com/challenges/weather-observation-station-4/problem?isFullScreen=true
Weather Observation Station 4 | HackerRank
Find the number of duplicate CITY names in STATION.
www.hackerrank.com
문제
Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table.
The STATION table is described as follows:
Code
SELECT COUNT(CITY) - COUNT(DISTINCT(CITY))
FROM STATION;
728x90
반응형
'SQL > MySQL' 카테고리의 다른 글
[MySQL/HackerRank] Weather Observation Station 7 (0) | 2023.08.18 |
---|---|
[MySQL/HackerRank] Weather Observation Station 6 (0) | 2023.08.12 |
[MySQL/HackerRank] Weather Observation Station 3 (0) | 2023.08.12 |
[MySQL/HackerRank] Weather Observation Station 1 (0) | 2023.08.12 |
[MySQL/HackerRank] Japanese Cities' Names (0) | 2023.08.12 |