!Важно!: столбец new_tested теперь формата STRING (раньше был INTEGER). Для извлечения числа из строки используем функцию
CAST(new_tested AS NUMERIC)
https://www.youtube.com/watch?v=aATqlIaaRkA&list=PLpn2Pzb485yhVWjcs_sfYIs1v-ddmcH2D&index=3
https://www.youtube.com/watch?v=Nry05cBKzCo&list=PLpn2Pzb485yhVWjcs_sfYIs1v-ddmcH2D&index=4
SELECT
date,
SUM(new_confirmed) AS confirmed,
SUM(new_tested) AS tested,
SUM(new_recovered) AS recovered
FROM
`bigquery-public-data.covid19_open_data_eu.covid19_open_data`
WHERE
date >= '2020-10-01'
AND date <= '2020-11-30'
GROUP BY
date
ORDER BY
date DESC
LIMIT
1000
SELECT
SUM(new_confirmed) AS new_confirmed
FROM
`bigquery-public-data.covid19_open_data_eu.covid19_open_data`
WHERE
date >= '2020-10-01'
AND date <= '2020-10-31'
AND country_name = 'France'
SELECT
date,
SUM(new_confirmed) AS confirmed
FROM
`bigquery-public-data.covid19_open_data_eu.covid19_open_data`
WHERE
rainfall_mm > 0
GROUP BY
date
LIMIT
1000
Визуализировать на данных из датасета covid19_open_data_eu: