Professional Documents
Culture Documents
SYSTEMS (DBMS)
LEARNING OBJECTIVES:
Database design concepts
Key concepts in DBMS
Distinguish use of data types for fields
ENTITIES,
RELATIONSHIPS
AND
ATTRIBUTES
Entity, entity set, and
entity type
Entity
the relationship of one entity to only A one to many (1:M) relationship should
one other entity, and vice versa. be the norm in any relational database
it could indicate that two entities design and is found in all relational
actually belong in the same table. database environments.
SIMPLE ATTRIBUTES
Simple attributes are those drawn from the
atomic value domains; they are also called
single-valued attributes. In the SCHOOL
database, an example of this would be: Class
= {Accountancy} ; Age = {23}
Types of
Attributes
COMPOSITE ATTRIBUTES
Composite attributes are those that consist of
a hierarchy of attributes. Name may consist
of First Name, Middle Name, and Last Name.
So this would be written as → Name = {Juan
+ ‘Manzano’ + ‘Dela Cruz’}
Types of
Attributes
MULTIVALUED ATTRIBUTES
Multivalued attributes are attributes that have
a set of values for each entity. An example of
a multivalued attribute from the SCHOOL
database, the Mobile no. of student: Cellphone
Types of Number, Telephone Number, Guardian Number
Attributes
DERIVED ATTRIBUTES
Derived attributes are attributes that contain
values calculated from other attributes. An
example of this is Age, it can be derived from
the attribute Date of Birth (DOB). In this
NULLS
EXAMPLE:
KINDS OF
INTEGRITY
CONSTRAINTS:
·Entity Integrity:
EXAMPLE:
·Referential Integrity
Constraints:
E
X
A
M
Primary Key
P
L
E:
·Key Constraints:
EXAMPLE:
ENTERPRISE CONSTRAINTS
(BUSINESS RULES)
additional rules specified by users or
database administrators and can be
based on multiple tables
It is used to determine:
CARDINALITY is the
degree of association
between two entities
ASSOCIATION
(connectivity)
is the relationship
between two tables
Relationship Type
The lines that connect between two tables are
called relationship type. There are 2 types of
relationship: Optional and Mandatory
relationship
Optional
Relationship
Definition
In this model, data is stored in the form of records, which are the collection of fields.
The records are connected through links and the type of records tells which field is
contained by the record. Each field can contain only one value.
HAT IS FIELD IN
W
DATABASE MANAGEMENT
A database field is a set of data values, of the
same data type, in a table. It is also referred
to as a column or an attribute.
Watt, A. and N. Eng. (2014). Database Design – 2nd Edition. Victoria, B.C.: BCcampus. Retrieved from
https://opentextbc.ca/dbdesign01/.