I have two tables with this relevant structure
Beneficiaries - id - .... Beneficiary_dates - id - opening_date - closing_date - beneficiary_id
I