SyntaxFix
Write A Post
Hire A Developer
Questions
SELECT DATEADD(day,-30,date) AS before30d FROM...
But it is strongly recommended to keep date in datetime column, not varchar.