SQL SUM() Function


The SUM() function returns the total sum of a numeric column.

Syntax
SELECT SUM(column_name) FROM table_name;

Example

student Table

stud_sidstud_namestud_fee
11211Ashwani200
11212Sachin400
11213Deepak600
11214Sanjay800
SELECT SUM(stud_fee) FROM student;
Output
2000

Share this article on