Database Lab #2
Database Lab #2
A department controls a number of projects, each of which has a unique name, a unique
number, and a single location.
The database will store each employee’s name, CNIC, address, salary, sex (gender), and birth
date. An employee is assigned to one department, but may work on several projects, which are
not necessarily controlled by the same department. It is required to keep track of the current
number of hours per week that an employee works on each project, as well as the direct
supervisor of each
Employee Employee
name salary unique name
CNIC location unique number
Birth date
work project
Employee
Address control
no of hour
Gender
manage
Department
unique name
If the candidate has worked before, that candidate has a specific job history. (Naturally, no job
history exists if the candidate has never worked.) Each time the candidate works, one additional
job history record is created.
Each candidate has earned several qualifications. Each qualification may be earned by more
than one candidate. (For example, it is possible for more than one candidate to have earned a
BBA degree or a Microsoft Network Certification. And clearly, a candidate may have earned
both a BBA and a Microsoft Network Certification.)
Each time a company requests a temporary employee, TEC makes an entry in the Openings
folder. That folder contains an opening number, a company name, required qualifications, a
starting date, an anticipated ending date, and hourly pay.
When a candidate matches the qualification, the job is assigned and an entry is made in the
Placement Record folder. That folder contains an opening number, a candidate number, the
total hours worked, etc. In addition, an entry is made in the job history for the candidate.
An opening can be filed by many candidates, and a candidate can fill many openings.