Javatpoint Logo
Javatpoint Logo

SQL Server SUM() Function

The SUM() function is used to return the sum of an expression in a SELECT statement.

Syntax:

Example:

First create a table "Employees":

SQL server sum function 1

Insert some data in that table:

SQL server sum function 2 SQL server sum function 3

Output:

SQL server sum function 4




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA