Reputation: 11749
SELECT * FROM leads WHERE researcher_id=66 AND WHERE YEARWEEK(entry_date)=YEARWEEK(now())
Can YEARWEEK not be combined with a regular ID query?? Is there some other brackets or re-arranging I need for this?
Basically I want to return all the leads generated by a researcher for the current week.
Upvotes: 0
Views: 42
Reputation: 2351
--modify researcher_id=66 AND WHERE researcher_id=66 AND
SELECT * FROM leads WHERE researcher_id=66 AND YEARWEEK(entry_date)=YEARWEEK(now())
Upvotes: 4