Reputation: 57
I'm trying to get all of the records in my database for the next week.
Here is the query I'm using, but it's producing 0 results
SELECT * FROM snip WHERE WEEKOFYEAR(init_visit_start)=WEEKOFYEAR(NOW());
Here is a small data example:
Upvotes: 0
Views: 90
Reputation: 7123
SELECT * FROM snip WHERE YEARWEEK(init_visit_start) = YEARWEEK(NOW()) + 1;
Upvotes: 1