I have a query like this
SELECT [Year], Month, AVG(salary) AS [salary] FROM table1
GROUP BY [Year],[Month]
ORDER BY Year,Month
But the months are populated as jan, feb,… etc. When i say order by month I will be ordering them by letters. I was thinking if there is any scope like giving jan as 1, feb as 2 and so on and then sorting on the number
try to use following:
Fill in
....with the rest of months.