Presentation is loading. Please wait.

Presentation is loading. Please wait.

Aggregate Functions.

Similar presentations


Presentation on theme: "Aggregate Functions."— Presentation transcript:

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;


Download ppt "Aggregate Functions."

Similar presentations


Ads by Google