Skip to content

Commit 6071b9f

Browse files
committed
Add IL phase 1 programs to data materialized view
1 parent 7fec5e5 commit 6071b9f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

data.sql

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,22 @@ latest_program_eligibility as not materialized (
153153
,sum(case when spes.name_abbreviated = 'nc_tanf' then spes.estimated_value ELSE 0 end) as nc_tanf_annual
154154
,sum(case when spes.name_abbreviated = 'ncwap' then spes.estimated_value ELSE 0 end) as ncwap_annual
155155
,sum(case when spes.name_abbreviated = 'nc_wic' then spes.estimated_value ELSE 0 end) as nc_wic_annual
156+
,sum(case when spes.name_abbreviated = 'il_aabd' then spes.estimated_value ELSE 0 end) as il_aabd_annual
157+
,sum(case when spes.name_abbreviated = 'il_aca' then spes.estimated_value ELSE 0 end) as il_aca_annual
158+
,sum(case when spes.name_abbreviated = 'il_aca_adults' then spes.estimated_value ELSE 0 end) as il_aca_adults_annual
159+
,sum(case when spes.name_abbreviated = 'il_all_kids' then spes.estimated_value ELSE 0 end) as il_all_kids_annual
160+
,sum(case when spes.name_abbreviated = 'il_bap' then spes.estimated_value ELSE 0 end) as il_bap_annual
161+
,sum(case when spes.name_abbreviated = 'il_ctc' then spes.estimated_value ELSE 0 end) as il_ctc_annual
162+
,sum(case when spes.name_abbreviated = 'il_eitc' then spes.estimated_value ELSE 0 end) as il_eitc_annual
163+
,sum(case when spes.name_abbreviated = 'il_family_care' then spes.estimated_value ELSE 0 end) as il_family_care_annual
164+
,sum(case when spes.name_abbreviated = 'il_liheap' then spes.estimated_value ELSE 0 end) as il_liheap_annual
165+
,sum(case when spes.name_abbreviated = 'il_medicaid' then spes.estimated_value ELSE 0 end) as il_medicaid_annual
166+
,sum(case when spes.name_abbreviated = 'il_moms_and_babies' then spes.estimated_value ELSE 0 end) as il_moms_and_babies_annual
167+
,sum(case when spes.name_abbreviated = 'il_nslp' then spes.estimated_value ELSE 0 end) as il_nslp_annual
168+
,sum(case when spes.name_abbreviated = 'il_snap' then spes.estimated_value ELSE 0 end) as il_snap_annual
169+
,sum(case when spes.name_abbreviated = 'il_tanf' then spes.estimated_value ELSE 0 end) as il_tanf_annual
170+
,sum(case when spes.name_abbreviated = 'il_transit_reduced_fare' then spes.estimated_value ELSE 0 end) as il_transit_reduced_fare_annual
171+
,sum(case when spes.name_abbreviated = 'il_wic' then spes.estimated_value ELSE 0 end) as il_wic_annual
156172
,sum(case when spes.name_abbreviated = 'nf' then spes.estimated_value ELSE 0 end) as nf_annual
157173
,sum(case when spes.name_abbreviated = 'nfp' then spes.estimated_value ELSE 0 end) as nfp_annual
158174
,sum(case when spes.name_abbreviated = 'nslp' then spes.estimated_value ELSE 0 end) as nslp_annual
@@ -532,6 +548,22 @@ base_table_1 as not materialized (
532548
,lpe.nc_tanf_annual
533549
,lpe.ncwap_annual
534550
,lpe.nc_wic_annual
551+
,lpe.il_aabd_annual
552+
,lpe.il_aca_annual
553+
,lpe.il_aca_adults_annual
554+
,lpe.il_all_kids_annual
555+
,lpe.il_bap_annual
556+
,lpe.il_ctc_annual
557+
,lpe.il_eitc_annual
558+
,lpe.il_family_care_annual
559+
,lpe.il_liheap_annual
560+
,lpe.il_medicaid_annual
561+
,lpe.il_moms_and_babies_annual
562+
,lpe.il_nslp_annual
563+
,lpe.il_snap_annual
564+
,lpe.il_tanf_annual
565+
,lpe.il_transit_reduced_fare_annual
566+
,lpe.il_wic_annual
535567
,lpe.nf_annual
536568
,lpe.nfp_annual
537569
,lpe.nslp_annual
@@ -651,6 +683,20 @@ base_table_2 as not materialized (
651683
+ coalesce(bt1.nc_tanf_annual, 0)
652684
+ coalesce(bt1.ncwap_annual, 0)
653685
+ coalesce(bt1.nc_wic_annual, 0)
686+
+ coalesce(bt1.il_aabd_annual, 0)
687+
+ coalesce(bt1.il_aca_annual, 0)
688+
+ coalesce(bt1.il_aca_adults_annual, 0)
689+
+ coalesce(bt1.il_all_kids_annual, 0)
690+
+ coalesce(bt1.il_bap_annual, 0)
691+
+ coalesce(bt1.il_family_care_annual, 0)
692+
+ coalesce(bt1.il_liheap_annual, 0)
693+
+ coalesce(bt1.il_medicaid_annual, 0)
694+
+ coalesce(bt1.il_moms_and_babies_annual, 0)
695+
+ coalesce(bt1.il_nslp_annual, 0)
696+
+ coalesce(bt1.il_snap_annual, 0)
697+
+ coalesce(bt1.il_tanf_annual, 0)
698+
+ coalesce(bt1.il_transit_reduced_fare_annual, 0)
699+
+ coalesce(bt1.il_wic_annual, 0)
654700
+ coalesce(bt1.nf_annual, 0)
655701
+ coalesce(bt1.nfp_annual, 0)
656702
+ coalesce(bt1.nslp_annual, 0)
@@ -673,6 +719,8 @@ base_table_2 as not materialized (
673719
+ coalesce(bt1.coeitc_annual, 0)
674720
+ coalesce(bt1.eitc_annual, 0)
675721
+ coalesce(bt1.fatc_annual, 0)
722+
+ coalesce(bt1.il_ctc_annual, 0)
723+
+ coalesce(bt1.il_eitc_annual, 0)
676724
+ coalesce(bt1.ma_maeitc_annual, 0)
677725
+ coalesce(bt1.shitc_annual, 0) as tax_credits_annual
678726
from base_table_1 bt1

0 commit comments

Comments
 (0)