Check out example codes for "sum of column in sql". It will help you in understanding the concepts better.

Code Example 1

SELECT COUNT(column_name)

FROM table_name

WHERE condition;

Code Example 2

SELECT AVG(column_name)

FROM table_name

WHERE condition;

Code Example 3

SELECT SUM(column_name)

FROM table_name

WHERE condition;

Code Example 4

SELECT SUM(column_name)
FROM table_name
WHERE condition;

Learn ReactJs, React Native from akashmittal.com