Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab - 2 Create an E - R Diagram for the Company database In this lab, create an E - R Diagram for the Company
Lab
Create an ER Diagram for the Company database
In this lab, create an ER Diagram for the Company database from the raw data files given below and the business rules of the company given below using the symbols of ER Diagram.
To create the ER Diagram for the Company database, we identified Entities in class as below. Entities: Employee Department Dependent Weak Entity Project.
For each Entity:
Identify all the attributes for each Entity
Identify the Attribute Type of each attribute per Entity
MultiValued Attribute,
Composite Attributes,
Key attribute:
If there are more than one key attribute, mark all as a possible key attribute.
If there is no key attribute in an Entity, identify multiple attributes as a composite key attribute.
Derived Attributes.
With the given raw data at the end of this lab sheet and the given Company rules as specified below, Identify a relationship between any two Entities to create an ER Diagram for the Company database scheme. Note that there could be more than one relationship between two entities. For example, between Employee and Department, there are more than one relationship. There could be no relationship between some pairs of two entities.
Company Rules:
Every employee should work for only one department.
A Department could have no employee.
Every employee should work on at least one project or more.
Every project should have at least one employee or more that works on
A Project can be worked by multiple employees
A Manager is the one who manages a Department. Only some of the employees are Managers.
A Supervisor is the one who supervises hisher regular employees.
Only some of the employees are Supervisors.
Every Department can have only one manager.
A department controls projects.
Every Project should be controlled by only one department.
Every dependent should have only one employee that heshe belongs to
For each relationship, identify the followings:
Name the relationship
Identify the Cardinality of each relationship between two entities as either N or N N M
Identify participant types: Total or Partial Participation for each entity that participates in a relationship
If there is no clear indication either from raw data or the rules for participation info of a relationship, leave it as partial participation as default
Submit your Lab report in doc file with your ER diagram either you can use free software or pencil or paper would be ok Give a brief explanation of the identified relationships and cardinality of each relationship in your ER diagram. Submit Both on Blackboard.
EMPLOYEE
FNAME MINIT LNAME SSN BDATE ADDRESS SEX SALARY SUPERSSN DNO
Burrow A Joe Jan Broadview Road M
Mixon B Joe Dec Perl Road M
Jennifer F English Jul Bunker Hill Dr F
Anita D Tyler Sep Fair Isle Way F
Alicia K Allen Nov Pleasant Valley F
Hilton P Mike Jun State Road M
Bell R Vonn Mar Ridge Road M
DEPARTMENT
DNAME DNUMBER MGRSSN MGRSTARTDATE DELOCATION
Headquarters Jun Houston
Administration Jan Stafford
Research May Stafford
Automation Oct Cleveland
DEPENDENT
SSN DEPENDENTNAME SEX BDATE RELATIONSHIP
Alice F Dec Daughter
Elizabeth F May Spouse
Michael M May Son
Alice F Jan Daughter
JoY F May Spouse
Theodeore M Jul Son
Abner M Jun Spouse
PROJECT
PNAME PNUMBER PLOCATION DNUM
ProdX Bellaire
ProdY Sugarland
ProdZ Stafford
ProdW Houston
ProdV Stafford
ProdM Stafford
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started