+ 1

How to calculate minimum salary, maximum salary, and average salary?

7th Sep 2016, 12:31 PM
Kirtiranjan Sahoo
Kirtiranjan Sahoo - avatar
6 Réponses
+ 4
select min(salary) from employee; ---> minimum salary, select max(salary) from employee; ---> maximum salary, select avg(salary) from employee;---> average salary these are the queries, in which employee is table name and salary is column name, using min() , max() , avg () functions you can calculate
7th Sep 2016, 12:39 PM
sangamesh naikar
sangamesh naikar - avatar
+ 3
select min (salary),max (salary),avg (salary) from employee;
7th Sep 2016, 1:43 PM
VishnuPriya
+ 1
select min(salary), max(salary), avg(salary) from table_name;
8th Sep 2016, 4:47 AM
Chirag Soni
Chirag Soni - avatar
0
yeah that's good
8th Sep 2016, 2:49 PM
Hissene Abdelwahid
Hissene Abdelwahid - avatar
0
Wow it's working., thanks all of you...
8th Sep 2016, 6:31 PM
Kirtiranjan Sahoo
Kirtiranjan Sahoo - avatar
0
use functions avg(salary) min(salary) and max(salary)
11th Sep 2016, 11:31 AM
Srishti Garg
Srishti Garg - avatar