Shashemene Poly Technique College Coc
Shashemene Poly Technique College Coc
PART II MATCHING
Column A Column B
Matching
Column A column B
Project title : designing a database of human resource record system for sunshine
company Time allotted 4:30
General information about the project
Assume that the candidate is working for sunshine company as database administrator. He/She are expected
to design and implement database for required section.
The required database must keep track of a company’s employees and departments. Suppose that, after the
requirements collection and analysis phase, the following are the part of the company to be represented in
the database:
The company is organized as departments and each department has unique name, a unique number, and
a particular employee who manages the department.
We store each employee’s name, social security number, salary, sex and birth date.
Note: any unspecified requirements and make appropriate assumptions to make the specification
complete.
First you need to create a database called “DB_Personnel” and create all tables that you have got on
task II in ”DB_Personnel” database using MS-SQLv 2005 Query analyzer. Save each query statement
Fn L S B Sex Sal S DN
a n S D ar U O
m a N AT y P
e m E E
e R
S
S
N
M Y 1 19 F 25 1 5
el i 2 89 00 2
at b 3 - 3
e r 4 02 4
a 4 - 5
6 07 6
7 7
8 9
0 8
Fe M 1 19 M 30 1 6
lk o 2 89 00 2
e l 3 - 0 3
a 4 04 4
5 - 5
6 08 6
6 7
8 8
0 9
H Y 1 19 F 30 1 6
a i 2 65 00 2
n r 3 - 0 3
n d 4 02 4
a a 5 - 5
c 6 08 6
h 7 7
e 8 8
w 0 9
A H 1 19 M 28 1 6
b a 2 65 00 2
d s 3 - 0 3
u s 4 01 4
e 5 - 5
n 6 09 6
7 7
8 8
9 9
Gi B 1 19 M 40 1 6
r e 2 68 00 2
m k 3 - 3
a e 4 02 4
l 4 - 5
e 6 08 6
7 7
9 8
8 9
(II) Insert the following two data In departments
5 123456798
Researc
h
SALES 6 123456789
(III) Retrieve the salary and birthdate of the employee(s) whose name is Abdu
(IV) Retrieve the name of all employees who work for the Research department.
(V) Update the SALARY of the EMPLOYEE tuple with SSN=’1234456789’ to28000.
(VI) For each employee, Retrieve the employee’s first and last name and the first and last name of
her immediate supervisor (Note.4)
(VII) For each department retrieve the department number, the number of employees, in the
department and their average salary.
(VIII) Retrieve all employees in department 5 whose salary is between $1,000 and $4,000
(IX) Retrieve the total number of employees in the ‘research’ department
(X) Delete the EMPLOYEE tuple with SSN = ‘123456780’.
(XI) Delete all records from employee table.