Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 파이썬 철저 입문
- 웹 스크랩핑
- 회귀분석
- 실전 데이터 분석 프로젝트
- 스파르타
- 프로젝트
- 파이썬
- 프로그래머스
- 중회귀모형
- R
- 파이썬 머신러닝 완벽 가이드
- 어쩌다 마케팅
- Cluster
- MySQL
- 스파르타 코딩
- TiL
- 내일배움캠프
- hackerrank
- 파이썬 철저입문
- 텍스트 분석
- 내일배움
- 티스토리챌린지
- 내일배움카드
- 파이썬 머신러닝 완벽가이드
- 스파르타코딩
- harkerrank
- 미세먼지
- wil
- 오블완
- SQL
Archives
- Today
- Total
OkBublewrap
Weather Observation Station 4 본문
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:

where LAT_N is the northern latitude and LONG_W is the western longitude.
For example, if there are three records in the table with CITY values 'New York', 'New York', 'Bengalaru', there are 2 different city names: 'New York' and 'Bengalaru'. The query 1 returns , because total number of records - number of unique ci
SELECT count(city) - count(distinct city)
FROM station
city의 값의 총합 - city의 고유값 총합 = 13
'개발 > SQL' 카테고리의 다른 글
| Weather Observation Station 9 (0) | 2023.02.22 |
|---|---|
| Weather Observation Station 8 (0) | 2023.02.22 |
| Weaher Observation Station 7 (0) | 2023.02.22 |
| Weather Observation Station 5 (0) | 2023.02.22 |
| Weather Observation Station 3 (0) | 2023.02.22 |