Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The COMPANY database keeps track of a companys e mployees, departments, and proj ects. Suppose that after the requirements collection and analysis phase, the database

The COMPANY database keeps track of a companys employees, departments, and projects. Suppose that after the requirements collection and analysis phase, the databasedesigners provide the following description of the miniworld the part of the company that will be represented in the database.

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.

We store each employees name, Social Security number, 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. We keep track of the current number of hours per week that an employee works on each project. We also keep track of the direct supervisor of each employee (who is another employee).

We want to keep track of the dependents of each employee for insurance purposes. We keep each dependents first name, sex, birth date, and relationship to the employee.

What you need to do this exercise

A Dia file has been created for you to extend and can be found on Blackboard Company.dia represents a completed ER schema which, models some of the information implemented in the system, as a starting point for this exercise.

1. Understanding the ER schema for the Company database.

To demonstrate that you understand the information represented by the schema, explain using EMPLOYEE, DEPARTMENT, PROJECT and DEPENDENT as examples:

a. attributes, entities and relationships
b. cardinality & participation constraints on relationships

You dont need to explain the entities etc BUT you should explain question a and b using the schema you have been given to more easily explain your answers.

2. Creating and Extending Entity Relationship Diagrams.

To demonstrate you can create entity relationship diagrams extend the ER as described in Company.dia by modelling new requirements as follows:

a. Create subclasses to extend Employee. The employee type may be distinguished further based on the job type (SECRETARY, ENGINEER, MANAGER, and TECHNICIAN) and based on the method of pay (SALARIED_EMPLOYEE, HOURLY_EMPLOYEE)

SECRETARY entity type has the specific attribute Typing_speed, whereas the ENGINEER entity type has the specific attribute Eng_type, but SECRETARY and ENGINEER share their other inherited attributes from the EMPLOYEE entity type.

SALARIED_EMPLOYEE entity type has the specific attribute Salary, whereas the HOURLY_EMPLOYEES entity type has the specific attribute Pay_scale.

b. Now explain the superclass and subclasses that you have just created.
c. Explain the disjointness and completeness constraints you have made while creating the specialization in question a.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions