The employee information in a company is stored in the relationEmployee (\(\underline{name}\), sex, salary, deptName)Consider the following SQL query
select deptName
from Employee
where sex = 'M'
group by deptName
having avg (salary) > (select avg (salary) from Employee)It returns the names of the department in which
- Athe average salary is more than the average salary in the company
- Bthe average salary of male employees is more than the average salary of all male employees in the company
- Cthe average salary of male employees is more than the average salary of employees in the same department.
- Dthe average salary of male employees is more than the average salary in the company