Professional Documents
Culture Documents
Associations of
Data
List of Modules
No. MODULE
MODULE TITLE
CODE
ASSESSMENT METHOD/S:
Quiz, Oral Recitation, Peer Learning
REFERENCES:
Learning Objectives:
After reading this INFORMATION SHEET, YOU MUST be able to:
1. Familiarized and discussed MS Access in creating a database.
What Is an Association?
An association defines a relationship between two entity objects based on
common attributes. The relationship can be one-to-one or one-to-many; you can
use two one-to-many associations to implement a many-to-many relationship.
The association allows entity objects to access the data of other entity objects
through a persistent reference.
https://sqldatabasetutorials.com/wp-content/uploads/2020/06/Database-Relationships-1-768x432.png
If you received a fine for a book checked out by another student, you would
certainly protest because the student who checked out the book (this is the
relationship) should also be responsible for any associated fines. This
emphasizes the importance of clarifying relationships, especially in a business
Relationships in Families
A relationship is the way in which two or more people or things are connected.
Family relationships categorize relationships between people, for example,
mother, father, aunt, and cousin.
The name of the relationship tells us how the family members are connected.
It is possible however that there will be jobs in the organization that is currently
not filled or are obsolete, so will not be held by any employees.
In general, however, each employee will hold one job, and each job may be held
by zero or more employees.
It is often necessary to add a small “s” to the end of the second entity name to
make the sentence more readable.
The answer to these questions will depend on the business rules for the
organization you are modeling
Business Scenario 1
What are the relationships in the following business scenario?
“In our restaurant, a customer walks up to the counter and places their
order. A customer can order for him or herself only, or for him/herself and
others. For example, a mother orders for herself and her children.
We consider the mother to be the customer who owns the order and is
responsible for payment. Over a period of time, a customer can place as
many orders as he wants.”
CUSTOMER places ORDERs: optionality and cardinality
Optionality = Must or may?
Each ORDER must be placed by one (and only one) CUSTOMER.
Each CUSTOMER must place one or more ORDERs.
https://sqldatabasetutorials.com/wp-content/uploads/2020/04/Business-Scenario-1-Relationships.png
Business Scenario 2
A relationship can join one entity to itself.
Examine the following scenario:
o “We need to keep track of our employees and their managers. Every
employee has one manager, including the managing director who
manages him/herself. Each manager can manage several
employees.”.
o Since managers are also employees, both are listed in the same
entity: EMPLOYEE.
ER Drawing Conventions
Entities are represented by softboxes.
Entity names go in the softboxes.
Entity names are always singular and written with all capital letters.
https://sqldatabasetutorials.com/wp-content/uploads/2020/04/ER-Drawing-Conventions.png
Drawing Conventions
Attributes are listed under the entity names.
Mandatory attributes are marked with an asterisk: “*”
Optional attributes are marked with a circle: “o”
Unique identifiers are marked with a hash sign: “#”
Relationships are lines that connect entities.
These lines are either solid or dashed.
These lines terminate in either a “single toe” or a “crow’s foot” at the end
of each entity.
You will learn the specific details about relationship lines in the next
lesson.
Bulacan Date Developed:
BSIS / ACT January 2021
Polytechnic Page 9 of 14
Date Revised:
DBS - 213 College
Database System Developed by:
(Access) Document No. Minerva V. Magbitang Revision # 01
Rosemarie S. Guirre
https://sqldatabasetutorials.com/wp-content/uploads/2020/04/Drawing-Conventions.png
Any attribute that is part of the UID is always mandatory.
It is convention to draw it with only the “#” symbol before the name. The “*” is
not required because it is implied by the Unique Identifier constraint
https://sqldatabasetutorials.com/wp-content/uploads/2020/04/One-to-Many-1-M-Relationships.png
Mandatory at both ends: This type of relationship typically models entities that
cannot exist without each other. This usually represents an ideal situation—we
cannot have ORDER ITEMs without ORDERs.
Mandatory on the one side, optional on the many side: This is rarely used. You
will see it only when the relationship expresses that an entity instance exists
only when it is a nonempty set, and where the elements of the set can exist
independently. A MUSICIAN may be part of one BAND. A BAND is of no interest
if it is empty. How can you have a BAND without MUSICIANs?
https://sqldatabasetutorials.com/wp-content/uploads/2020/04/Many-to-Many-M-M-Relationships.png
https://sqldatabasetutorials.com/wp-content/uploads/2020/04/Many-to-Many-M-M-Relationships-1.png
https://sqldatabasetutorials.com/wp-content/uploads/2020/04/One-to-One-Relationships-For-Roles.png
Usually you will find just a few of the various types of 1:1 relationships in
every ER model.
Mandatory at one end of the 1:1 relationship commonly occurs when
roles are modeled.