T-SQL Tutorial

SQL Sum


Sum Syntax:

SELECT SUM(column_name)
FROM table_name

Sales table:

IDPRICENAME
1200A
2500B
3900C
4500D

Sum Example:

SELECT SUM(price) FROM store;

Sum Result: 2100