$ 0 0 Your join condition is wrong. You must add a year, not subtract! Use X.CALDATE = add_months(X_1.CALDATE, 12).