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