These are some DB syntax to automate date in your queries.
FIRST_DAY_OF_MONTH() - First day of the current month
LAST_DAY_OF_MONTH() - Last day of the current month
FIRST_DAY_OF_YEAR() - First day of the current year
LAST_DAY_OF_YEAR() - Last day of the current year
No comments:
Post a Comment