• So you're okay with someone who has a gap that crosses years?


    INSERT INTO #t(BeneficiaryID, EligYear, EligMonth )
    Select '12345678',2016,6 UNION
    Select '12345678',2016,7 UNION
    Select '12345678',2016,8 UNION
    Select '12345678',2016,9 UNION
    Select '12345678',2016,10 UNION
    Select '12345678',2017,3 UNION
    Select '12345678',2017,4 UNION
    Select '12345678',2017,5

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA