Jump to content

Selecting everything between now and last Thursday


guyfromfl

Recommended Posts

For other inquiring minds:

 

SELECT * FROM tabl WHERE 
dateField >= CONCAT( DATE_SUB(CURDATE(), INTERVAL WEEKDAY(DATE_SUB(CURDATE(), INTERVAL 5 DAY)) DAY), ' 00:00:00');

 

Then change the interval number to whatever day of the week you want.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.