Professional Documents
Culture Documents
Week 6-7: Unit Learning Outcomes (ULO): At the end of the unit, you are expected to
a) Understand Concept of Modeling In Data Organization through the used of
basic and enhanced ERD.
b) Understand the Concept Database Normalization
Metalanguage
Row(s) – List of record(s) or values result from Query
Schema – Another name of a database.
Table – An entity in the database where data/records are stored.
Query – SQL statement that manipulates data in the database.
ERD - Entity Relationship Diagram.
ENTITY - It may represent a group of objects, class, person, or place with similar
properties.
ATTRIBUTES – A property of an Entity or Relationship.
CONTRAINTS - It is a rules applied on data column/field in a database.
Essential Knowledge
What is an ER Model?
There are three components of ER diagram which mainly consist of an entity, attribute,
and relation. These will be discussed in detail below.
Figure 1.0 Entity Relationship Model
Entity: An entity may represent a group of objects, class, person, or place with similar
properties. In the ER diagram, an entity can be represented as rectangles. Consider an
organization as an example - teacher, subject, student, department, etc. can be taken
as an entity. See the diagram below.
● Strong Entity: An entity type can be considered as strong if its existence does not
depend on another entity type. It is also called a regular entity.
● Weak Entity: On the contrary, there are also weak entities. An entity that is
dependent on another entity is called a weak entity. This entity type does not contain
any key attribute of its own. Below is the diagrammatic representation of a strong
and weak entity.
Attributes
● Key Attribute: The key attribute is used to represent the main characteristics of an
entity. It denotes a primary key. In the diagram above, you will see the key attribute
(staffNo) represented by a circle with the text underlined.
● Composite Attributes: Refers to an attribute that composed of many other
attributes. The composite attribute is drawn by a circle, and those circles are
connected with a circle.
● Multivalued Attribute: A type of attribute that can have more than one value is
associated as a multivalued attribute. For example, a student can have more than
one mobile number from different network subscribers.
● Derived Attribute: This type of attribute can be originated from other attributes. In
the diagram representation, it is represented by a dashed circle. For example, A
person's age changes over time and can be derived from another attribute like Date
of birth.
When an entity has only one occurrence associated with the relationship, then it is
associated as one to one relationship. Like in the diagram example, A patient
receives a medical prescription, or on the contrary, a medical prescription is given
to a patient.
If there is only one occurrence of an entity on the left, and on the right entity
composed of more than one occurrence associated with the relationship then this
is known as a one-to-many relationship.
For example, A teacher can teach more than one course, or on the contrary, more
than one course can be handled by a single teacher.
If there is only one occurrence of an entity on the left, and on the right entity
composed of more than one occurrence associated with the relationship then this
is known as a one-to-many relationship.
When there is more than one occurrence of both entities associated with the
relationship, then it is known as a many-to-many relationship.
For example, A scientist can develop more than one COVID vaccine or on the
contrary, a COVID vaccine can be developed by a scientist
Self-Help: You can also refer to the sources below to help you further understand
the lesson:
Big Picture in Focus: ULOb Understand the Concept
Database Normalization
Metalanguage
Essential Knowledge
DATABASE Normalization
Normalization is a technique used to assess the quality of a relational database schema
by minimizing data redundancy. It defines specific methods to eliminate these
redundancies. Normalization is based on the analysis of functional dependence and on
a series of normal forms. Let’s discuss these further.
The CUSTOMER table in Table 1.0 contains the following attributes: Cust_ID,
First_Name, Surname, and Tel_Num.