Samuel
0
Q:

sum sql


SELECT SUM(column_name)

FROM table_name

WHERE condition; 
2

SELECT COUNT(column_name)

FROM table_name

WHERE condition; 
7
SELECT SUM(column_name)
FROM table_name
WHERE condition;
2
/* COUNT() is a function that takes on the name of a clomn as an argument
and counts the number of rows where the column is not null */

SELECT COUNT(column_name)
FROM table_name;
1

SELECT AVG(column_name)

FROM table_name

WHERE condition; 
0

New to Communities?

Join the community