Question

In: Computer Science

Case Study 4 A relational database is to be designed for a medium sized Company dealing...

Case Study 4

A relational database is to be designed for a medium sized Company dealing with industrial applications of computers. The Company delivers various products to its customers ranging from a single application program through to complete installation of hardware with customized software. The Company employs various experts, consultants and supporting staff. All personnel are employed on long‐ term basis, i.e. there is no short‐term or temporary staff. Although the Company is somehow structured for administrative purposes (that is, it is divided into departments headed by department managers) all projects are carried out in an inter‐disciplinary way. For each project a project team is selected, grouping employees from different departments, and a Project Manager (also an employee of the Company) is appointed who is entirely and exclusively responsible for the control of the project, quite independently of the Company's hierarchy.

Description: The following is a brief statement of some facts and policies adopted by the Company.

• Each employee works in some department.

• An employee may possess several skills

• Every manager (including the MD) is an employee

• A department may participate in none/one/many projects.

• At least one department participates in a project.

• An employee may be engaged in none/one/many projects

• Project teams consist of at least one member.

Solutions

Expert Solution

Explanation:

As per the Case Study, the tables their attributes and the constraints are given below :

Following are the table in the database :

1. DEPARTMENT

2. EMPLOYEE

3. PROJECT

4. EMPLOYEE_SKILLS

5. WORKS_ON

We have following constraint type :

1. Primary key

2. Foreign key

3. Check condition

4. NOT NULL

5. UNIQUE

Constraints for the table are given below:

Table : DEPARTMENT

Column_name

Data Type

Contraint_type

DEPT_ID

INT

PRIMARY KEY

DEPT_NAME

VARCHAR(50)

NOT NULL

MGR_ID

INT

FOREIGN KEY (references from EMPLOYEE table)

Table : EMPLOYEE

Column_name

Data Type

Contraint_type

EMP_ID

INT

PRIMARY KEY

FNAME

VARCHAR(50)

NOT NULL

MINIT

VARCHAR(50)

NOT NULL

LNAME

VARCHAR(50)

NOT NULL

SALARY

INT

NOT NULL

DEPT_ID

INT

FOREIGN KEY (references from DEPARTMENT table)

Table : PROJECT

Column_name

Data Type

Contraint_type

PRJ_ID

INT

PRIMARY KEY

PRJ_TITLE

VARCHAR(50)

NOT NULL

PRJ_MGR_ID

INT

FOREIGN KEY (references from EMPLOYEE table)

Table : EMPLOYEE_SKILLS

Column_name

Data Type

Contraint_type

SKILL_NAME

VARCHAR(50)

NOT NULL

EMP_ID

INT

FOREIGN KEY (references from EMPLOYEE table)

Table : WORKS_ON

Column_name

Data Type

Contraint_type

EMP_ID

INT

FOREIGN KEY (references from EMPLOYEE table)

PRJ_ID

INT

FOREIGN KEY (references from PROJECT table)

As per the Case Study the ER Diagram and Relational Schema are given below :

ER Diagram :

Relational Schema :


Related Solutions

Case Study 4 Husain Trading Company is dealing in different kinds of buying and selling of...
Case Study 4 Husain Trading Company is dealing in different kinds of buying and selling of goods to vast range of customers in Muscat region and provided the following data to understand the cash position every month start from January to July. The sales book reported the sales amount for seven months as below: - January February March April May June July 555,000 475,000 485,000 505,000 598,000 526,000 565,000 The sales reported every month including cash sales and credit sales....
Consider the schemas of the following relational database for a company. The company has different departments...
Consider the schemas of the following relational database for a company. The company has different departments at different cities in different states: employee(employee-id, dept-id, name, street-num, street-name, city, state, zip, salary) department(dept-id, dept-name, city, state) manager(manager-id, employee-id) NOTES: manager-id in the manager relation is a foreign key to the employee relation. employee-id in the manager relation is a foreign key to the employee relation. dept-id in the employee relation is a foreign key to the department relation. An employee belongs...
Draw a relational model for the following case study. Case Study The local under-sixteen football league...
Draw a relational model for the following case study. Case Study The local under-sixteen football league needs a database to help track teams, children that sign up to play in the league, the parents of these children and the coaches for each team. The league wishes to record the details for each parent of a particular player (the parents last name, first name, phone contact number and address). For each player, the system needs to record the player's last name,...
The project is adapted from the Chapter 4 Case Study dealing with North–South Airline In January...
The project is adapted from the Chapter 4 Case Study dealing with North–South Airline In January 2012, Northern Airlines merged with Southeast Airlines to create the fourth largest U.S. carrier. The new North–South Airline inherited both an aging fleet of Boeing 727-300 aircraft and Stephen Ruth. Stephen was a tough former Secretary of the Navy who stepped in as new president and chairman of the board. Stephen’s first concern in creating a financially solid company was maintenance costs. It was...
Given Codd's Rule 4: Rule 4: Dynamic online catalog based on the relational model: The database...
Given Codd's Rule 4: Rule 4: Dynamic online catalog based on the relational model: The database description is represented at the logical level in the same way as ordinary data, so that authorized users can apply the same relational language to its interrogation as they apply to the regular data. In three sentences, explain what this means. Give two example queries from MySQL that show how MySQL realizes the concepts
Part #4: Data normalization: Background: Data in a relational database is stored in a normalized form....
Part #4: Data normalization: Background: Data in a relational database is stored in a normalized form. Data normalization or just normalization is a strategy used to organize data into multiple related tables to reduce data redundancy while preserving data integrity. Exercise: Normalize the student data in the University table (sample data is shown further below) into 3 tables, namely, Student, Department, and Course. You do not need to populate data. Just illustrate the schema for the 3 tables. You may...
‏Case # 2 ‏Sara is the information Technology Director of a medium sized firm. She observes...
‏Case # 2 ‏Sara is the information Technology Director of a medium sized firm. She observes that the newly installed management information system (MIS) is not being used by middle mangers as much as we originally expected. Recognizing there is surely a problem; Sara develops the following broad problem statement:” What should be done to increase the use of the newly installed MIS by our middle managers?”. For this purpose, she collected information by talking to some the middle level...
Rainbow Company, a medium-sized company specialized in the manufacture and distribution of equipment for babies and...
Rainbow Company, a medium-sized company specialized in the manufacture and distribution of equipment for babies and small children, is evaluating a new capital expenditure project. In a joint venture with another separate company it has invented a remote controlled pushchair, one of the first of its kind on the market. It has been unable to obtain a patent for the invention, but is sure that it will monopolize the market for the first three years. After this, it expects to...
a. An employee, Fred, working in the accounts office of a medium-sized company listed on the...
a. An employee, Fred, working in the accounts office of a medium-sized company listed on the Nairobi Stock Exchange, was working late one evening during the week. He realized he had left his pen in the boardroom at an earlier meeting and, given its value, went upstairs to look for it. As he approached the door he heard the following discussion: ‘Chief Executive: I am deeply concerned that if this fall in profit figures is disclosed in the next annual...
TeaLand S.A. is a London company that started as a medium-sized company. Its main activity is...
TeaLand S.A. is a London company that started as a medium-sized company. Its main activity is the commercialization of tea to various European countries. Currently they obtain tea from the main producing countries: China, India, Sri Lanka, Kenya, Indonesia and Turkey. They sell their tea in different ways: in bulk, in bags and cold tea as a soda. They not only sell to supermarkets, but also to companies and the hospitality and catering industries. They have been in the market...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT