SUM « Aggregate Functions « SQL Server / T-SQL Tutorial






9.7.SUM
9.7.1.SUM returns the total value in a column of all selected records or all the DISTINCT (unique) values selected by the query.
9.7.2.Sum function with column alias
9.7.3.SUM with group by
9.7.4.Sum with CUBE
9.7.5.SUM with WITH ROLLUP
9.7.6.HAVING SUM(Salary) > 1000