Jump to content

Return rows for the next week


rubing

Recommended Posts

I am trying to return all rows in the range of this upcomming week. So, I am using CURDATE() and (CURDATE() + 7).  Unfortunately it is not working.  Is there something wrong with this query?

 

 

SELECT DISTINCT MusicEvents.Band, Venue, BandSite, Category, HomeTown 
FROM MusicEvents LEFT JOIN Bands ON MusicEvents.Band=Bands.Band 
WHERE Date BETWEEN CURDATE() and (CURDATE() + 7) 
ORDER BY Venue ASC, Source ASC, MusicEvents.Band ASC

Link to comment
https://forums.phpfreaks.com/topic/102429-return-rows-for-the-next-week/
Share on other sites

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.