Download presentation
Presentation is loading. Please wait.
1
Aggregate Functions
2
Aggregate Functions Aggregate function are functions that take a collection of values as input and return a single value as output. AVG – average value MIN – minimum value MAX – Maximum value SUM – Sum of values COUNT – number of values
3
Std Sno Name Create table Mark1 Mark2 Mark3 SQL> select avg(mark1) from std; SQL> select avg(mark1), avg(mark2), avg(mark3) from std where mark1>=60;
4
SQL> select min(mark1) from std;
SQL> select max(mark1) from std; SQL> select sum(mark1) from std; SQL> select count(*) from std where mark>=60 and mark2>=60 and mark3>=60;
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.