Should have used count_total_4 in calculation instead of count_total_1

This commit is contained in:
Diego Ripley
2025-05-30 16:15:27 +00:00
parent daf5a2d154
commit bd7e8ee9f4
@@ -71,7 +71,7 @@
"SELECT\n",
" geo.da_dguid,\n",
" cop.count_total_4,\n",
" (cop.count_total_1 / (ST_Area_Spheroid(ST_FlipCoordinates(geo.geom)) / 1000000.0)) AS count_total_4_per_square_km,\n",
" (cop.count_total_4 / (ST_Area_Spheroid(ST_FlipCoordinates(geo.geom)) / 1000000.0)) AS count_total_4_per_square_km,\n",
" geo.geom\n",
"FROM\n",
" 'https://data.dataforcanada.org/processed/statistics_canada/census_of_population/2021/tabular/da_2021.parquet' AS cop,\n",