Exercise 5 - Group Functions
Exercise 5 - Group Functions
FROM EMP;
ROUND(AVG(SAL),2) AS AVERAGE,
MAX(SAL) AS MAXIMUM
FROM EMP;
3. List the minimum and maximum salary for each job type.
FROM EMP
group by JOB;
4. Find out how many managers there are without listing them.
select COUNT(*)
from EMP
where JOB='MANAGER';
5. Find the average salary and average total remuneration for each job type. Remember
salesmen earn commission.
from EMP
GROUP BY JOB;
6. Find out the difference between highest and lowest salaries.