Good morning everyone! how do I, in a query in mysql catch dynamically generate the date referring to 3 months ago?
Good morning everyone! how do I, in a query in mysql catch dynamically generate the date referring to 3 months ago?
You can use the Sysdate function next to the interval for example:
SELECT (SYSDATE() - INTERVAL 3 MONTH) FROM DUAL
or leave the number of days fixed:
SELECT (SYSDATE() - 90) FROM DUAL