Set 2
Set 2
Note: Consider the EMP and DEPT tables created in Set 1 for the following queries.
1. List the name and salary of the employees whose salary is more than 1000.
6. List the names of the employees whose employee numbers are 7369,7521,7566,7782.
7. List the names of the employees not belonging to the department 10 and 20.
8. List the employees name and salary, whose salary is between 1000 and 2000.
9. List the different jobs available in the employee table.
12. List the details of the employees whose salary is greater than 2000 and commission is
Null.
13. List the employees whose name start with ‘S’.
14. List the employee names having ‘I’ as the second character.
15. List the name, salary, and PF amount of all the employees.
16. List the employee ID, name and salary in ascending order of salary.
17. List the employees name and date of joining in ascending order of date of joining.
18. List the employees name, salary, job, and department number in ascending order of the
department number and then on descending order of salary.
19. List the employees name, salary, PF, HRA, DA, and GROSS, order the result in ascending
order of gross. (HRA is 50% of salary, DA is 30% of salary, PF is 10% of salary)
26. List the department number and number of employees in each department.
27. List the job and the number of employees in each job. The result should be in
descending order of the number of employees.
28. List the total salary, maximum and minimum salary of employee job wise.
29. List the average salary for all the departments employing more than 2 people.
30. List the jobs of all the employees where maximum salary is greater than or equal to
1000.