I have a table with sales per store as follows:
SQL> select * from sales; ID ID_STORE DATE TOTAL ---------- -------- ---------- -----------
I think the problem is in your join condition. I haven't tested it but I think you could try sth like
... ON ( sales.id_store = sales2.id_store AND sales.date = ADDDATE(sales2.date, INTERVAL 1 YEAR) ... )