Q&A for developers and researchers interested in open data
select DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())-1, 0)