SELECT YEAR([MONTH]) AS [Year], MONTH([MONTH]) AS [Month], SUM(amt) AS [Sum Amt], SUM(amt1] AS [Sum Amt1] FROM MyTable GROUP BY YEAR([MONTH]), MONTH([MONTH])
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)