Professional Documents
Culture Documents
Example of an ER diagram
Attribute Classification
The attribute is used to describe the properties of the entity.
This attribute can be broadly classified based on value and
structure.
Based on value the attribute can be classified into a single
value, multivalue, derived, and null value attribute while Based
on structure, the attribute can be classified as a simple and
composite attribute.
STUDENT
ID number (PK) Name Program
101-00001 Roger Federer BSIT
101-00002 Roaddict Oco BSCS
101-00003 Akio Mico BSIS
The last step is for each weak entity type, include the primary
key of the identifying relation as a foreign key attribute. The
identifying relation of DEPENDENT is the EMPLOYEE relation and
the primary key is Employee_ID. So we add one additional
attribute to the DEPENDENT relation which is Employee_ID. As a
good practice, the foreign key attribute name is the same name as
the referred primary key.
So, this is the final corresponding table: This type of ERD can
be also classified as a one-to-many relationship.
Mapping Associative Entity to Tables
The many-to-many relationship can be modelled as an associative
entity in the ER diagram.
For example, we have 3 entities, the customer, shipment and
vendor. Both customer and vendor are strong entities while the
shipment is an associative entity. The existence of shipment
depends on the customer and the vendor.
The last step is for each weak entity type, include the primary
key of the identifying relation as a foreign key attribute. The
identifying relations of SHIPMENT are CUSTOMER relation and
VENDOR relation. The primary key of CUSTOMER relation is the
Customer-ID while the primary key of VENDOR relation is the
Vendor-ID. So we add two additional attributes to the SHIPMENT
relation which are Customer-ID and Vendor-ID. As a good practice,
the foreign key attribute name is the same name as the referred
primary key.
The corresponding table is given by:
As a good practice, each relation should be assigned an
identifier (An additional attribute) to identify uniquely the
rows. This identifier is the primary key of the relation.
Assignment:
Given the BioData Form, draw the following:
1. Entity-Relationship Diagram. Identify the possible entity
names and assign a relationship type between the entities.
2. Corresponding Relation of the created E R diagram
Instruction:
How to draw?
Use only your ballpen and paper.
How to submit the assignment?
You can take a picture of your work. One photo for the ER
diagram and another one for the corresponding relation of
the created ER diagram. Then, submit the images to the LMS
or email it to tvnakazato@carsu.edu.ph.
When is the deadline for the assignment?
On or before September 7, 2020.