Chapter 2 Data Model
Chapter 2 Data Model
Chapter 2 Data Model
INTRODUCTION TO DATABASE
MANAGEMENT SYSTEM
By :
Miss Noorfadzilah Arifin
Data structures
Their characteristic
Relations
Constraints
Transformation
Data Model Basic Building Blocks
Constraints
Entity Attribute Relationship
Is a restriction
Describe an placed on the data
Is anything / or any Is a characteristic of
real world object that an entity association among
can store data entities
Eg:
• Book Price must less than
Eg:
Eg: Eg: rm1000
Book_Title, • Student CGPA must between
Book, Doctor, 1:1, 1:M, 0.00 and 4.00
Doc_Id,
Student, M:N • Each Doctor must have at
Student_Name
least 2 specialization
Types of Relationship
1:1 (one-to-one)
has
LECTURER ROOM
1:M (one-to-many)
has
PERSON CAR
M:N (many-to-many)
served
NURSE WARD
Business Rules
➢ Company manager
➢ Department manager
➢ Policy makers
➢ Written document
➢ company procedures
➢ operation manual
➢ End user
Business Rules
✓ Difficult to manage
Schema
Subschema
Hierarchical model
✓ Depicts a set of one-to-many (1:M) relationships
between a parent and its children segments
Relational model
✓ Current database implementation standard
✓ ER model is a popular graphical tool for data modeling
that complements the relational model
Summary