Algorithm & SQL/SQL
Weather Observation Station 4
YoonJong
2022. 6. 7. 15:55
728x90
STATION 테이블에서 city의 총합 과 중복된 city의 총 합의 차이를 구하는 문제이다.
count로 개수를 세는것은 알았지만 두 수의 차이를 구하는 것을 배울 수 있었다.
다시한번 적어보기 : select count(city) - count(distinct(city)) from station where id;
정답 : select count(city) - count(distinct(city)) from station where id
728x90