Column medicare.qc_enrl_bene.number_of_gap_years Lineage SVG

medicare.qc_enrl_bene.number_of_gap_years medicare.qc_enrl_bene.number_of_gap_years GENERATED ALWAYS AS (last_enrollment_year - first_enrollment_year + 1 - CARDINALITY(all_enrollment_years)) STORED medicare.beneficiaries.all_enrollment_years medicare.beneficiaries.all_enrollment_years ARRAY_AGG(DISTINCT year ORDER BY year) medicare.beneficiaries.all_enrollment_years->medicare.qc_enrl_bene.number_of_gap_years join natural medicare._beneficiaries.all_enrollment_years medicare._beneficiaries.all_enrollment_years ARRAY_AGG(DISTINCT year ORDER BY year) medicare._beneficiaries.all_enrollment_years->medicare.beneficiaries.all_enrollment_years Copied