Sum of column in sql

This article is tagged with: Sum of column in sql and mysql

sum of column in sql

SELECT SUM(column_name)
FROM table_name
WHERE condition;

sum sql

SELECT SUM(column_name)
FROM table_name
WHERE condition;

how to find averages on sql

SELECT AVG(column_name)
FROM table_name
WHERE condition;

select count sql

SELECT COUNT(column_name)
FROM table_name
WHERE condition;

This article is tagged with: Sum of column in sql and mysql