Lab Assignment-6
Lab Assignment-6
1. Insert 10 appropriate records in each table as per the SQL queries mentioned below.
4. Display the employee details of each department for which they are working.
5. List the total, maximum, & minimum salary for deptno 30?
9. Display the total salary for each job within each department.
10. Display the average salary for each job in deptno 20.
11. Display the total salary for each job excluding the ‘manager’ and ‘salesman’ job.
12. Display the average salary for each job in deptno 20, but only display those jobs where
average salary is greater than 2000 & display the output in descending order of salary?
13. Display the total no of employees for each department excluding the deptno 10 & display
only those departments where more than five employees work. Display the output in
descending order of total no of employees?
14. Display the total no of employees for each department excluding the ‘comp’ dept & display
only those departments where more than five employees work. Display the output in
descending order of total no of employees?
15. Display total number of emp working in each job in each dept.
16. List all the department name and their employees name even if for a department there is no
employees (A newly created department).
17. List all the employees name and their department name even if for an employee there is no
department assigned (A newly joined employee).
18. List all the departments name and their employees name irrespective whether for a
department any employees are there are not, and irrespective whether for an employee
there is any department assigned or not.