SUM


The  SUM() Function is used to returns the sum of column.

Syntax :-

SELECT  SUM(column_name)

FROM table_name

WHERE conditions;

Example : Let's see how to used SUM() function in table.

Query :

SELECT  SUM(Salary)

FROM customers

WHERE Customer_Id = 5;

Output :

Now, you can see SUM() Function calculated the sum of column in the salary column .