일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 머신러닝
- 전처리
- TRUNCATE
- 프로그래머스
- matplotlib
- 데이터분석
- Round
- airflow.cfg
- 그로스해킹
- SQL
- GROUPBY
- 파이썬
- SQLite
- pandas
- MySQL
- not in
- having
- seaborn
- 데이터리안 웨비나
- 데이터시각화
- join
- hackerrank
- solvesql
- 결측값
- Limit
- 다중 JOIN
- SUM
- airflow 설치
- Oracle
- PostgreSQL
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