Sure. You want to use the SUM() function and then GROUP BY.Dates can get a little tricky but not too bad.This would show total sales for August:SELECT Sum(sales)FROM yourTableWHERE datepart(year, saledate) = 2011AND datepart(month, saledate) = 8
This will show all sales, broken down ny month and yearSELECT DatePart(month, saledate) as month, DatePart(year, SaleDate) as year, SUM(sales) as totalSalesFROM salesGROUP BY DatePart(Month, SaleDate), DatePart(year, SaleDate)ORDER BY year, month;