File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 555529 . Ошибка - [ The Blunder] ( ./tasks/29.md )
565630 . Лучшие заработки - [ Top Earners] ( ./tasks/30.md )
575731 . Проверка агрегатов — функция подсчета - [ Revising Aggregations - The Count Function] ( ./tasks/31.md )
58+ 32 . Проверка агрегатов — функция суммы - [ Revising Aggregations - The Sum Function] ( ./tasks/32.md )
5859
5960
6061## В процессе... , будет дополнено)
Original file line number Diff line number Diff line change 33<img src =" ./art/32.png " alt =" solution " >
44
55#### eng:
6+ Query the total population of all cities in CITY where District is California.
67
8+ Input Format
9+
10+ The CITY table is described as follows:
711
812
913#### рус:
14+ Запросите общую численность населения всех городов в CITY, где District — Калифорния.
15+
16+ Формат ввода
1017
18+ Таблица CITY описывается следующим образом:
1119
1220
1321#### код с коментариями:
1422``` sql
15-
23+ SELECT /* выбрать данные */
24+ SUM (POPULATION) /* столбец суммы населения */
25+ FROM CITY /* из таблицы */
26+ WHERE DISTRICT = ' CALIFORNIA' ; /* где условие */
1627```
1728
1829#### код для hackerrank:
1930``` sql
20-
31+ SELECT
32+ SUM (POPULATION)
33+ FROM CITY
34+ WHERE DISTRICT = ' CALIFORNIA' ;
2135```
2236
2337
Original file line number Diff line number Diff line change 1+ SELECT
2+ SUM (POPULATION)
3+ FROM CITY
4+ WHERE DISTRICT = ' CALIFORNIA' ;
You can’t perform that action at this time.
0 commit comments