Assignment - 8
Assignment - 8
05BC1204 – DBMS - 1
Semester - II * ASSIGNMENT – 8 *
ASSIGNMENT - 8
Compiled and Prepared By: Dr. Jaypalsinh A. Gohil & Prof. Amit M. Gohel -1-
M.U. B.C.A. 05BC1204 – DBMS - 1
Semester - II * ASSIGNMENT – 8 *
MID
EMPL MAN DEPA
LAST_N FIRST_N DLE JOB_ HIRE_DA SALA COM
OYEE AGE RTME
AME AME _NA ID TE RY M
_ID R_ID NT_ID
ME
--------
------- ------- ----- ----- ------- ------- ------ --- ------
-
7369 SMITH JOHN Q 667 7902 17-DEC-84 800 NULL 20
7499 ALLEN KEVIN J 670 7698 20-FEB-85 1600 300 30
7505 DOYLE JEAN K 671 7839 04-APR-85 2850 NULL 30
15-MAY-
7506 DENNIS LYNN S 671 7839 2750 NULL 30
85
7507 BAKER LESLIE D 671 7839 10-JUN-85 2200 NULL 40
CYNTHI
7521 WARK D 670 7698 22-FEB-85 1250 500 30
A
Compiled and Prepared By: Dr. Jaypalsinh A. Gohil & Prof. Amit M. Gohel -2-
M.U. B.C.A. 05BC1204 – DBMS - 1
Semester - II * ASSIGNMENT – 8 *
12. List out the employee id, name in descending order based on salary column.
13. List out the employee details according to their last_name in ascending order and
salaries in descending order.
14. List out the employee details according to their last_name in ascending order and
then on department_id in descending order.
15. How many employees who are working in different departments wise in the
organization.
16. List out the department wise maximum salary, minimum salary, average salary of
the employees.
17. List out the department id having at least four employees.
18. How many employees in January month.
19. Display the employee who got the maximum salary.
20. Display the employees who are working in Sales department.
21. Display the employees who are working as “Clerk”.
22. Find out no. of employees working in “Sales” department.
23. List our employees with their department names.
24. Display employees with their designations (jobs).
Compiled and Prepared By: Dr. Jaypalsinh A. Gohil & Prof. Amit M. Gohel -3-