A visual way of describing objects and their interrelated relationships
Random fact: Peter Chen developed ERDs in 1976.
It was also the year that Sylvester Stallone first screamed, "Adrian!!" in Rocky.
Built from three components:
- Entities - the objects
- Attributes - information that describes each entity
- Relationship - how each entity is linked
An entity could be something like:
- students
- employees
- projects
- movies
One doctor has one office.
One office has one doctor.
One employer has many employees.
One employee belongs to one employer.
One doctor has many patients
One patient has many doctors
The task is to build a company ERD/database
Work with the 2 nearest people (max group of 3) to build an ERD with the following specifications:
- Employee
- Project
- Department
- Dependent
- Manager
An employee has the following attributes:
- Name
- Tax File Number
- Address
- Salary
- Birth Date
A department has the following attributes:
- Name
- Number
- Location
A project has the following attributes:
- Name
- Number
- Location
A dependent has the following attributes:
- Name
- Tax File Number
- Birth Date
- Relationship
A manager has the following attributes:
- Name
- Department
- Tax File Number
-
A manager has many employees
-
An employee has one manager
-
An employee works for a department
-
A department has many employees
-
A department controls projects
-
A project is controlled by a single department
-
An employee has many dependents
-
A dependent belongs to an employee