ITECH1103 Tutorial02 Portfolio
ITECH1103 Tutorial02 Portfolio
Tutorial 2
Topic
Entity Relationship Modelling
Review Questions
1. Identify issues in the Crow’s Foot notations used in the following ERD.
2. Given a scenario represented by the following entities, where customers place orders
for products:
An initial ERD using Lucidchart for this scenario would be the following:
Page 1 of 4
An initial ERD using Lucidchart for this scenario would be the following:
This ERD only shows the primary keys of each of the entities, sometimes an ERD is
drawn such that it will show all the non-primary key attributes for the model. In such a
complete ERD you must not show or label foreign keys, the use of foreign keys
indicates that you are looking at a logical model where a choice has been made to use
a relational database, rather than a conceptual model.
Replicate the above diagram in your preferred diagramming software package. Once
you have done that, add all the non-primary key attributes listed in the scenario above.
In this case, if you were to add the foreign keys to the respective entities, can you see
any problems moving from a conceptual model to a logical/relational model? What
would you need to do to fix the problem?
Ans
Page 2 of 4
3. Using the above diagram and the business rules below, create an Entity
Relationship Diagram using Crow’s Foot notations.
o Include:
all appropriate connectivities,
all cardinalities and
at least the minimum number of attributes required to implement the
model
o Business Rules:
A department employs many employees, but each employee is
employed by one department.
Some employees, known as "rovers," are not assigned to any
department.
A division operates many departments, but each department is
operated by one division
An employee may be assigned to many projects, and a project may
have many employees assigned to it.
A project must have at least one employee assigned to it.
One of the employees manages each department, and each
department is managed by one employee
One of the employees runs each division, and each division is run by
one employee.
Page 3 of 4
SOLUTION
4. Design an ER diagram for a car insurance company whose customers own one or
more cars each. Each car has associated with it zero to many number of recorded
accidents.
5.
6. Acme Pty Ltd is made up of a number of departments that manage none or more
projects. Each project is made up of none or more team members.
Each team member belongs to one department. Each team member belongs to zero
to one project.
One of the team members supervise the other team members on the project.
Page 4 of 4
Portfolio Questions
7. Given the following business rules, create an ER diagram for each of the specified
relationships:
• A company operates four departments
• Each department employs staff
• Each staff may work for one or more departments
• A staff may be supervised by another staff member
• Each department has one manager.
Identify the entities and the attributes
9. Prepare an Entity Relationship Diagram (ERD) showing all primary and non-primary
key attributes for the following description of a Property Rental System: