Forum Moderators: open
can someone help me with this problem..
i'm trying to extract entries from my db, with an interval of FROM 14days ago to 7days ago.. i can't get anything to work.. please help ;)
select ID, my_date_col from my_table where DATEDIFF(now(),my_date_col) > 7 and DATEDIFF(now(),my_date_col) < 14
A second choice:
date_sub (curdate(), interval 7 day) date_sub (curdate(), interval 14 day)