Having a table with fields like this: (id, date, intervaldays) while as an example the date='2015-06-30' and the interval days =3 What is the query for list all the dates between (date - (date+intervaldays)) if there is any, so the output will be like:
id 2015-06-30
id 2015-07-01
id 2015-07-02
I have in mind that DATE_ADD(date, INTERVAL intervaldays DAY) will give the last date, so how can I list the days between