[SQL] Weather Observation Station 4 01

이슬비·2022년 6월 22일
0

SQL

목록 보기
3/7
post-thumbnail

sql... 간만에 하니까 너무 낯설다...

Weather Observation Station 4 01

1. 문제

문제는 매---우 간단하다. 총 city의 count 값이랑 city에서 중복을 제거한 count 값의 차이를 구하는 것이다.

2. 풀이

select count(city) - count(distinct city)
from station;

✅ Check Point

  • select 문에서도 연산이 가능하다...!
profile
정말 알아?

0개의 댓글