I need the month+year from the datetime in SQL Server like \'Jan 2008\'. I\'m grouping the query by month, year. I\'ve searched and found functions like datepart, convert, e
returns the full month name, -, full year e.g. March-2017
March-2017
CONCAT(DATENAME(mm, GetDate()), '-', DATEPART(yy, GetDate()))