I would like to return results for month to date.
I tried the query below, but it doesn't work. Can someone help me?
SELECT * FROM myTable WHERE DATE_SUB(CURDATE(), INTERVAL (DAYOFMONTH(CURDATE())) DAY <= timestamp;
I am sure that I have the syntax wrong, but would like to see if someone can help here.
Thanks.