Challenge Lab
Qwiklabs [GSP340]
Task 2: Add new columns to your table
code (B)
Task 3: Add country population data to the population column
code (C):
Task 4: Add country area data to the country_area column
code (D):
Task 5: Populate the mobility record data
code (E)
Task 6: Query missing data in population & country_area columns
code (F):
Task -3
ReplyDeleteUPDATE
ecommerce.sample t0
SET
population = t2.pop_data_2019
FROM
ecommerce.sample t1
LEFT JOIN
(SELECT DISTINCT country_territory_code, pop_data_2019 FROM `bigquery-public-data.covid19_ecdc.covid_19_geographic_distribution_worldwide`) AS t2
ON t1.alpha_3_code = t2.country_territory_code
WHERE CONCAT(t0.country_name, t0.date) = CONCAT(t1.country_name, t1.date)