feat(sql): add gov_population_yearly view

Exposes one row per (year, canonical_govid) drawn from long.population.
Used by per-capita denominators and peer matching.
This commit is contained in:
2026-04-29 15:12:53 -04:00
parent a28fb2e19b
commit ed9658d267
2 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
CREATE OR REPLACE VIEW gov_population_yearly AS
SELECT DISTINCT
year,
canonical_govid,
population,
popyear
FROM long
WHERE population IS NOT NULL;