SyntaxFix
Write A Post
Hire A Developer
Questions
Try this : Using this you can select date by last 30 days,
SELECT DATEADD(DAY,-30,GETDATE())