1) Use a join to display the employee identification number and employee name of all employees of the production department.
departments.department_name from employees natural join departments where
department_name = ‘production’; says no rows selected
2) Display the details of the employees who have been hired after the employee Jack was hired.
3) Display the employee name, department number, and job description of all employees who have the same job title as the employee Scott.
4) For each department, display the department number, the average, maximum, and minimum salary earned by the employees of the department. Sort the data by average salary.
Select round (MAX (salary), 0) “Maximum”,
Round (MIN (salary), 0) “Minimum”.
Round (AVG (salary), 0) “Average”
Group by department_id;
5) Find the highest salary earned by any employee in each job category. Display only those jobs where the maximum basic salary is more than $10,000.
6) Find the total number of employees working under each particular head of department (HOD). Display only those department heads that have a count greater than 3.
7) Display the department name and average salary of all the employees in each department. Sort the output alphabetically by department name.