Doomshell Academy of Advance Computing
Doomshell Academy of Advance Computing
Doomshell Academy of Advance Computing
Agreegate Function
Agreegate Function
Aggregate functions are functions that take a collection of values as
input and return a single value.
In a table agree gate function will be apply on all the columns value
and return a single value.
Empsal Table
sid Name Salary position
SUM( ):-
It is use to add the value.
NOTE:-
SELECT:- The select statement is use to select from a database.
Result Total_salary
158000
Mvagi (n) tfaubnlcetsi o n
A
AVG( ):-
It is use to find average value.
avg_salary
Result
26333.333
S uoabui nt tat(ba) lbfelusensc t i o n
M
C
COUNT( ):-
It is use to count the values.
NOTE:-
where:- The where caluse is used to extract only those records that
fulfill a specified condition.
count_Manager
Result
3
FMi rasi tn( )t af bu lnecst i o n
FIRST( ):-
The FIRST() function returns the first value.
first_name
Result
john
LMaas itn( ) t faubnl ec st i o n
LAST( ):-
The LAST( ) function returns the first value.
last_name
Result
Shekhar
M a xi n( ) t faubnl ec st i o n
MAX( ):-
The MAX() function returns the maximum value.
Max_salary
Result
42000
M iani n( ) tfaubnl cetsi o n
MIN( ):-
The MIN() function returns the minimum value.
min_salary
Result
18000