Specify the following additional queries on the database of Figure 3.5 in SQL. Show the query results if applied to the database of Figure 3.6.
(a) For each department whose average employee salary is more than $30,000, retrieve the department name and the number of employees working for that department.
(b) Suppose we want the number of male employees in each department rather than all employees (as in (a)). Can we specify this query in SQL? Why or why not?
(c) Retrieve the names of all employees who work in the department that has the employee with the highest salary among all employees.
(d) Retrieve the names of all employees whose supervisor’s supervisor has '888665555' for Ssn.
(e) Retrieve the names of employees who make at least $10,000 more than the employee who is paid the least in the company.