+ 1
How to calculate minimum salary, maximum salary, and average salary?
6 Antworten
+ 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
+ 3
select min (salary),max (salary),avg (salary) from employee;
+ 1
select min(salary), max(salary), avg(salary) from table_name;
0
yeah that's good
0
Wow it's working., thanks all of you...
0
use functions avg(salary) min(salary) and max(salary)