SUM
The SUM() Function is used to returns the sum of column.
Syntax :-
Example : Let's see how to used SUM() function in table.
SELECT SUM(column_name)
FROM table_name
WHERE conditions;
Query :
Output :
SELECT SUM(Salary)
FROM customers
WHERE Customer_Id = 5;
Now, you can see SUM() Function calculated the sum of column in the salary column .
0 Comments