Database Lab#03
Database Lab#03
Database Lab#03
Lab Task 1: The Company is organized into departments. Each department has a unique name, a unique
number, and a particular employee who manages the department. We keep track of the start date when
that employee began managing the department. A department may have several locations.
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.
Lab#3.2
: During peak periods, Temporary Employment Corporation (TEC) places temporary workers in
companies. TEC’s manager gives you the following description of the business
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