Dearest genius StackOverflow friends,
I\'m in the need of creating a view that will always give me data in the WHERE clause for \"Period\" looking for the previous M
Try this expression:
SELECT STUFF(CONVERT(VARCHAR(10), DATEADD(MONTH, -1, GETDATE()), 101), 3, 6, '')