LISTING 1: Order Count by Month and Year USE Northwind SELECT MONTH(OrderDate) AS OrderMonth, SUM(CASE YEAR(OrderDate) WHEN 1996 THEN 1 ELSE 0 END) AS c1996, SUM(CASE YEAR(OrderDate) WHEN 1997 THEN 1 ELSE 0 END) AS c1997, SUM(CASE YEAR(OrderDate) WHEN 1998 THEN 1 ELSE 0 END) AS c1998 FROM Orders GROUP BY MONTH(OrderDate) ORDER BY MONTH(OrderDate)