DBMS Set-2 PJ
DBMS Set-2 PJ
DBMS Set-2 PJ
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.
5. List the details of the employees who have joined before the end of
september’81.
8. List the employees name and salary, whose salary is between 1000 and 2000
11. List the employees who are not eligible for commission.
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 descending 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 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.