rubing Posted April 22, 2008 Share Posted April 22, 2008 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 Quote Link to comment Share on other sites More sharing options...
fenway Posted April 23, 2008 Share Posted April 23, 2008 There is... 7 what? WHERE Date BETWEEN CURDATE() and (CURDATE() + INTERVAL 7 DAY) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.