• I just figured you would have a months table with the number of days in the month as each of the months mentioned have 31 days. So I would have

    Where days_in_month = 31 and month(dob) < 9.