Skip
Arish's avatar

82. Selecting Multiple Aggregate Values


Multiple Aggregates

Select several aggregate values at once.

Example

sql
1SELECT 
2  COUNT(*) AS total,
3  MIN(marks) AS lowest,
4  MAX(marks) AS highest,
5  AVG(marks) AS average
6FROM students;

Result

totallowesthighestaverage
25459876.5