Using SQL Server 2008, I have a query that is used to create a view and I\'m trying to display a month\'s name instead of an integer.
SQL Server 2008
basically this ...
declare @currentdate datetime = getdate() select left(datename(month,DATEADD(MONTH, -1, GETDATE())),3) union all select left(datename(month,(DATEADD(MONTH, -2, GETDATE()))),3) union all select left(datename(month,(DATEADD(MONTH, -3, GETDATE()))),3)