SyntaxFix
Write A Post
Hire A Developer
Questions
Try adding this to your where clause:
where
dateadd(day, -30, getdate())