What Are Group Functions in MySQL

Q

What Are Group Functions in MySQL?

✍: FYIcenter.com

A

Group functions are functions applied to a group of rows. Examples of group functions are:

  • COUNT(*) - Returns the number of rows in the group.
  • MIN(exp) - Returns the minimum value of the expression evaluated on each row of the group.
  • MAX(exp) - Returns the maximum value of the expression evaluated on each row of the group.
  • AVG(exp) - Returns the average value of the expression evaluated on each row of the group.

 

Using Group Functions in the SELECT Clause in MySQL

Filerting out Duplications in Returning Rows in MySQL

SELECT Query Statements with GROUP BY in MySQL

⇑⇑ MySQL Database Tutorials

2018-01-06, 1376🔥, 0💬