SyntaxFix
Write A Post
Hire A Developer
Questions
SELECT * FROM <table_name> WHERE <date_field> BETWEEN DATE_SUB(NOW(), INTERVAL 1 MONTH) AND NOW();
Similarly, You can select records for 1 month, 2 months etc.