0% found this document useful (0 votes)
29 views

SQL Avg Count Sum

Uploaded by

pallaB ghosh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

SQL Avg Count Sum

Uploaded by

pallaB ghosh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

MySQL COUNT(), AVG() and SUM() Functions

#The COUNT() function returns the number of rows that matches a specified
criterion.

COUNT() Syntax
SELECT COUNT(column_name)
FROM table_name
WHERE condition;

#The AVG() function returns the average value of a numeric column.

AVG() Syntax
SELECT AVG(column_name)
FROM table_name
WHERE condition;

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

SUM() Syntax
SELECT SUM(column_name)
FROM table_name
WHERE condition;

You might also like