sum of column in sql
snippet in sql

sum sql

user9474


SELECT SUM(column_name)

FROM table_name

WHERE condition; 

sum of column in sql

user1934

SELECT SUM(column_name)
FROM table_name
WHERE condition;

select count sql

user6463


SELECT COUNT(column_name)

FROM table_name

WHERE condition; 

how to find averages on sql

user5675


SELECT AVG(column_name)

FROM table_name

WHERE condition;