일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 데이터시각화
- pandas
- not in
- 데이터분석
- 머신러닝
- 다중 JOIN
- Oracle
- 그로스해킹
- 데이터리안 웨비나
- 결측값
- SUM
- 프로그래머스
- hackerrank
- 전처리
- TRUNCATE
- MySQL
- airflow 설치
- 파이썬
- Round
- solvesql
- GROUPBY
- join
- mysql :=
- PostgreSQL
- SQLite
- seaborn
- Limit
- matplotlib
- SQL
- having
Archives
- Today
- Total
Milky's note
[HackerRank](E) Revising Aggregations - The Sum Function 본문
SQL/SQL 코딩 테스트-HackerRank
[HackerRank](E) Revising Aggregations - The Sum Function
밀뿌 2022. 3. 25. 15:57https://www.hackerrank.com/challenges/revising-aggregations-sum/problem?isFullScreen=true
[문제]
Query the total population of all cities in CITY where District is California.
Input Format
The CITY table is described as follows:
[답]
- mysql
select sum(population) from city
where district = 'California'
'SQL > SQL 코딩 테스트-HackerRank' 카테고리의 다른 글
[HackerRank](E) Average Population (0) | 2022.03.25 |
---|---|
[HackerRank](E) Revising Aggregations - Averages (0) | 2022.03.25 |
[HackerRank](E) Revising Aggregations - The Count Function (0) | 2022.03.25 |
[HackerRank](M) Binary Tree Nodes (0) | 2022.03.18 |
[HackerRank](M) The PADS (0) | 2022.03.18 |
Comments