Can somebody please explain how I would SELECT
a DATE and move forward in intervals of 7 DAYS
given a date range in a WHERE
clause?
Here's my example SQL:
SELECT DATE(*TIMESTAMP*) + (DATE_ADD(DATE(*TIMESTAMP*), INTERVAL 7 DAY)) as `interval`
WHERE digital_lead.received <= '2014-12-16 08:37:00' AND
digital_lead.received >= '2014-11-14 08:37:00'
So the expected output would appear like
interval
2014-11-14
2014-11-21
2014-11-28
2014-12-05
The SELECT
statement moves forward 7 DAYS
given the date range in the WHERE
clause.
Any suggestions?