elsenorjose
Technical User
I'm using the following syntax to retrieve data for the period between Sunday and Saturday of the prior week regardless of what day I run this query in the current week.
...WHERE YEARweek(tblDate) = YEARweek(CURRENT_DATE - INTERVAL 7 DAY)
What is the corresponding syntax to retrieve records between the first and last day of the prior month, regardless of when in the current month I run this?
Thanks in advance.
...WHERE YEARweek(tblDate) = YEARweek(CURRENT_DATE - INTERVAL 7 DAY)
What is the corresponding syntax to retrieve records between the first and last day of the prior month, regardless of when in the current month I run this?
Thanks in advance.