SlideShare a Scribd company logo
1 of 50
Database Systems: Design,
Implementation, and
Management
Eighth Edition
Chapter 4
Entity Relationship (ER) Modeling
Database Systems, 8th
Edition 2
Objectives
• In this chapter, you will learn:
– The main characteristics of entity relationship
components
– How relationships between entities are defined,
refined, and incorporated into the database
design process
– How ERD components affect database design
and implementation
– That real-world database design often requires
the reconciliation of conflicting goals
Database Systems, 8th
Edition 3
The Entity Relationship (ER) Model
• ER model forms the basis of an ER diagram
• ERD represents conceptual database as
viewed by end user
• ERDs depict database’s main components:
– Entities
– Attributes
– Relationships
Database Systems, 8th
Edition 4
Entities
• Refers to entity set and not to single entity
occurrence
• Corresponds to table and not to row in
relational environment
• In Chen and Crow’s Foot models, entity
represented by rectangle with entity’s name
• Entity name, a noun, written in capital letters
Database Systems, 8th
Edition 5
Attributes
• Characteristics of entities
• Chen notation: attributes represented by ovals
connected to entity rectangle with a line
– Each oval contains the name of attribute it
represents
• Crow’s Foot notation: attributes written in
attribute box below entity rectangle
Attribute : - ciri-ciri yang terdapat pada entiti
Database Systems, 8th
Edition 6
Database Systems, 8th
Edition 7
Attributes (continued)
• Required attribute: must have a value
• Optional attribute: may be left empty
• Domain: set of possible values for an attribute
– Attributes may share a domain
• Identifiers: one or more attributes that uniquely
identify each entity instance
• Composite identifier: primary key composed
of more than one attribute
setiap attribute haruslah mempunyai nilai
Domain merupakan ruang yang menghad data yang dimasukkan
merujuk kepada key (sesuatu yang boleh menerangkan secara unit suatu entiti). Eg: no. matrik
Database Systems, 8th
Edition 8
Database Systems, 8th
Edition 9
Attributes (continued)
• Composite attribute can be subdivided
• Simple attribute cannot be subdivided
• Single-value attribute can have only a single
value
• Multivalued attributes can have many values
Database Systems, 8th
Edition 10
2 garisan ini bermaksud “Multiple Value”.
Database Systems, 8th
Edition 11
Attributes (continued)
• M:N relationships and multivalued attributes should
not be implemented
– Create several new attributes for each of the
original multivalued attributes components
– Create new entity composed of original
multivalued attributes components
• Derived attribute: value may be calculated
from other attributes
– Need not be physically stored within database
Database Systems, 8th
Edition 12
Garis putus = derive attribute
Database Systems, 8th
Edition 13
Relationships
• Association between entities
• Participants are entities that participate in a
relationship
• Relationships between entities always operate
in both directions
• Relationship can be classified as 1:M
• Relationship classification is difficult to establish
if only one side of the relationship is known
Database Systems, 8th
Edition 14
Connectivity and Cardinality
• Connectivity
– Describes the relationship classification
• Cardinality
– Expresses minimum and maximum number of
entity occurrences associated with one
occurrence of related entity
• Established by very concise statements known
as business rules
CONNECTIVITY dab CARDINALITY banyak di tunjuk dalam
crow foot model
Database Systems, 8th
Edition 15
minimum
maximum
CARA BACA: satu professor mengajar sekurang2nya 1 kelas
dan maksimum 4 kelas.
Database Systems, 8th
Edition 16
Existence Dependence
• Existence dependence
– Entity exists in database only when it is
associated with another related entity
occurrence
• Existence independence
– Entity can exist apart from one or more related
entities
– Sometimes such an entity is referred to as a
strong or regular entity
Database Systems, 8th
Edition 17
Relationship Strength
• Weak (non-identifying) relationships
– Exists if Primary Key (PK) of related entity does
not contain PK component of parent entity
• Strong (identifying) relationships
– Exists when PK of related entity contains PK
component of parent entity
Database Systems, 8th
Edition 18
Database Systems, 8th
Edition 19
PK bergabung dengan FK
untuk membentuk SUPER
KEY. Relationship
menjadi kuat
Database Systems, 8th
Edition 20
Weak Entities
• Weak entity meets two conditions
– Existence-dependent
– Primary key partially or totally derived from
parent entity in relationship
• Database designer determines whether an
entity is weak based on business rules
Database Systems, 8th
Edition 21
Dua kotak ini
menunjukkan entiti
yang lemah
Database Systems, 8th
Edition 22
Database Systems, 8th
Edition 23
Relationship Participation
• Optional participation
– One entity occurrence does not require
corresponding entity occurrence in particular
relationship
• Mandatory participation
– One entity occurrence requires corresponding
entity occurrence in particular relationship
Database Systems, 8th
Edition 24
CARA BACA: satu course
Database Systems, 8th
Edition 25
Database Systems, 8th
Edition 26
Relationship Degree
• Indicates number of entities or participants
associated with a relationship
• Unary relationship
– Association is maintained within single entity
• Binary relationship
– Two entities are associated
• Ternary relationship
– Three entities are associated
Database Systems, 8th
Edition 27
Database Systems, 8th
Edition 28
Database Systems, 8th
Edition 29
Recursive Relationships
• Relationship can exist between occurrences of
the same entity set
– Naturally found within unary relationship
Database Systems, 8th
Edition 30
Database Systems, 8th
Edition 31
Database Systems, 8th
Edition 32
Associative (Composite) Entities
• Also known as bridge entities
• Used to implement M:N relationships
• Composed of primary keys of each of the
entities to be connected
• May also contain additional attributes that play
no role in connective process
Database Systems, 8th
Edition 33
MANY TO MANY tak boleh ada dalam database. Jadi, kalau ada
MANY TO MANY relationship, kena wujudkan INTERSECTION untuk
jadikan MANY TO MANY kepada ONE TO MANY
Database Systems, 8th
Edition 34
Database Systems, 8th
Edition 35
Developing an ER Diagram
• Database design is an iterative process
– Create detailed narrative of organization’s
description of operations
– Identify business rules based on description of
operations
– Identify main entities and relationships from
business rules
– Develop initial ERD
– Identify attributes and primary keys that
adequately describe entities
– Revise and review ERD
Database Systems, 8th
Edition 36
Database Systems, 8th
Edition 37
Database Systems, 8th
Edition 38
Database Systems, 8th
Edition 39
Database Systems, 8th
Edition 40
Database Systems, 8th
Edition 41
Database Systems, 8th
Edition 42
Database Systems, 8th
Edition 43
Database Systems, 8th
Edition 44
Database Systems, 8th
Edition 45
Database Systems, 8th
Edition 46
Database Systems, 8th
Edition 47
Database Design Challenges:
Conflicting Goals
• Database designers must make design
compromises
– Conflicting goals: design standards, processing
speed, information requirements
• Important to meet logical requirements and
design conventions
• Design of little value unless it delivers all
specified query and reporting requirements
• Some design and implementation problems do
not yield “clean” solutions
Database Systems, 8th
Edition 48
Database Systems, 8th
Edition 49
Summary
• Entity relationship (ER) model
– Uses ERD to represent conceptual database as
viewed by end user
– ERM’s main components:
• Entities
• Relationships
• Attributes
– Includes connectivity and cardinality notations
Database Systems, 8th
Edition 50
Summary (continued)
• Connectivities and cardinalities are based on
business rules
• M:N relationship is valid at conceptual level
– Must be mapped to a set of 1:M relationships
• ERDs may be based on many different ERMs
• Database designers are often forced to make
design compromises

More Related Content

What's hot

Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04
Jotham Gadot
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02
Jotham Gadot
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
adukkas
 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.
yhen06
 
Logical database design and the relational model(database)
Logical database design and the relational model(database)Logical database design and the relational model(database)
Logical database design and the relational model(database)
welcometofacebook
 

What's hot (20)

Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Database systems
Database systemsDatabase systems
Database systems
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
The Relational Database Model
The Relational Database ModelThe Relational Database Model
The Relational Database Model
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02
 
Dbms Concepts
Dbms ConceptsDbms Concepts
Dbms Concepts
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Database Chapter 3
Database Chapter 3Database Chapter 3
Database Chapter 3
 
Chapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and ArchitectureChapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and Architecture
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Data models
Data modelsData models
Data models
 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.
 
Database management system
Database management systemDatabase management system
Database management system
 
Introduction to structured query language (sql)
Introduction to structured query language (sql)Introduction to structured query language (sql)
Introduction to structured query language (sql)
 
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
 
MySql Triggers Tutorial - The Webs Academy
MySql Triggers Tutorial - The Webs AcademyMySql Triggers Tutorial - The Webs Academy
MySql Triggers Tutorial - The Webs Academy
 
Logical database design and the relational model(database)
Logical database design and the relational model(database)Logical database design and the relational model(database)
Logical database design and the relational model(database)
 

Viewers also liked

Information system
Information systemInformation system
Information system
Dhani Ahmad
 
Opportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisOpportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysis
Dhani Ahmad
 

Viewers also liked (20)

Introduction to project management
Introduction to project managementIntroduction to project management
Introduction to project management
 
Project integration management
Project integration managementProject integration management
Project integration management
 
Business intelligence and data warehouses
Business intelligence and data warehousesBusiness intelligence and data warehouses
Business intelligence and data warehouses
 
Database administration and security
Database administration and securityDatabase administration and security
Database administration and security
 
Database design
Database designDatabase design
Database design
 
Database connectivity and web technologies
Database connectivity and web technologiesDatabase connectivity and web technologies
Database connectivity and web technologies
 
Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systems
 
Database Management Systems 1
Database Management Systems 1Database Management Systems 1
Database Management Systems 1
 
Database Model
Database ModelDatabase Model
Database Model
 
Database
DatabaseDatabase
Database
 
Strategic planning
Strategic planningStrategic planning
Strategic planning
 
Types of islamic institutions and records
Types of islamic institutions and recordsTypes of islamic institutions and records
Types of islamic institutions and records
 
Chap01 introduction to project management
Chap01 introduction to project managementChap01 introduction to project management
Chap01 introduction to project management
 
Project management IT Project Management
Project management IT Project Management Project management IT Project Management
Project management IT Project Management
 
Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04
 
Information system
Information systemInformation system
Information system
 
Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02
 
Chap03 the project management process groups
Chap03 the project management process groupsChap03 the project management process groups
Chap03 the project management process groups
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Opportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysisOpportunities, threats, industry competition, and competitor analysis
Opportunities, threats, industry competition, and competitor analysis
 

Similar to Entity relationship (er) modeling

02010 ppt ch02
02010 ppt ch0202010 ppt ch02
02010 ppt ch02
Hpong Js
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
RuksanKarki
 
DISE - Database Concepts
DISE - Database ConceptsDISE - Database Concepts
DISE - Database Concepts
Rasan Samarasinghe
 

Similar to Entity relationship (er) modeling (20)

02010 ppt ch04
02010 ppt ch0402010 ppt ch04
02010 ppt ch04
 
03 chapter
03 chapter03 chapter
03 chapter
 
02010 ppt ch02
02010 ppt ch0202010 ppt ch02
02010 ppt ch02
 
Chapter – 3 Database Design P-I.pdf
Chapter – 3 Database Design P-I.pdfChapter – 3 Database Design P-I.pdf
Chapter – 3 Database Design P-I.pdf
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In Introduction
 
Relational model
Relational modelRelational model
Relational model
 
Unit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxUnit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptx
 
oracle
oracle oracle
oracle
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
IT6701 Information Management - Unit I
IT6701 Information Management - Unit I  IT6701 Information Management - Unit I
IT6701 Information Management - Unit I
 
database management system
database management systemdatabase management system
database management system
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
 
DISE - Database Concepts
DISE - Database ConceptsDISE - Database Concepts
DISE - Database Concepts
 
Module 1 session 5
Module 1   session 5Module 1   session 5
Module 1 session 5
 
IS740 Chapter 05
IS740 Chapter 05IS740 Chapter 05
IS740 Chapter 05
 
ch2-slide Data Models.pptx
ch2-slide Data Models.pptxch2-slide Data Models.pptx
ch2-slide Data Models.pptx
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
 
Relational databases.pdf
Relational databases.pdfRelational databases.pdf
Relational databases.pdf
 
DBMS ppts unit1.pptx
DBMS ppts  unit1.pptxDBMS ppts  unit1.pptx
DBMS ppts unit1.pptx
 

More from Dhani Ahmad

Information resource management
Information resource managementInformation resource management
Information resource management
Dhani Ahmad
 

More from Dhani Ahmad (20)

Strategic information system planning
Strategic information system planningStrategic information system planning
Strategic information system planning
 
Information resource management
Information resource managementInformation resource management
Information resource management
 
Islamic information seeking behavior
Islamic information seeking behaviorIslamic information seeking behavior
Islamic information seeking behavior
 
Islamic information management
Islamic information managementIslamic information management
Islamic information management
 
Islamic information management sources in islam
Islamic information management sources in islamIslamic information management sources in islam
Islamic information management sources in islam
 
The need for security
The need for securityThe need for security
The need for security
 
The information security audit
The information security auditThe information security audit
The information security audit
 
Security technologies
Security technologiesSecurity technologies
Security technologies
 
Security policy
Security policySecurity policy
Security policy
 
Security and personnel
Security and personnelSecurity and personnel
Security and personnel
 
Secure
SecureSecure
Secure
 
Risk management ii
Risk management iiRisk management ii
Risk management ii
 
Risk management i
Risk management iRisk management i
Risk management i
 
Privacy & security in heath care it
Privacy & security in heath care itPrivacy & security in heath care it
Privacy & security in heath care it
 
Physical security
Physical securityPhysical security
Physical security
 
Legal, ethical & professional issues
Legal, ethical & professional issuesLegal, ethical & professional issues
Legal, ethical & professional issues
 
Introduction to information security
Introduction to information securityIntroduction to information security
Introduction to information security
 
Information security as an ongoing effort
Information security as an ongoing effortInformation security as an ongoing effort
Information security as an ongoing effort
 
Implementing security
Implementing securityImplementing security
Implementing security
 
Disaster recovery & business continuity
Disaster recovery & business continuityDisaster recovery & business continuity
Disaster recovery & business continuity
 

Recently uploaded

Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
ptikerjasaptiker
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
q6pzkpark
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ahmedjiabur940
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
cnajjemba
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Abortion pills in Riyadh +966572737505 get cytotec
 
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
vexqp
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
ranjankumarbehera14
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
gajnagarg
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 

Recently uploaded (20)

Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling ManjurJual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
Jual Cytotec Asli Obat Aborsi No. 1 Paling Manjur
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
 
Data Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdfData Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdf
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATIONCapstone in Interprofessional Informatic  // IMPACT OF COVID 19 ON EDUCATION
Capstone in Interprofessional Informatic // IMPACT OF COVID 19 ON EDUCATION
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 

Entity relationship (er) modeling

  • 1. Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling
  • 2. Database Systems, 8th Edition 2 Objectives • In this chapter, you will learn: – The main characteristics of entity relationship components – How relationships between entities are defined, refined, and incorporated into the database design process – How ERD components affect database design and implementation – That real-world database design often requires the reconciliation of conflicting goals
  • 3. Database Systems, 8th Edition 3 The Entity Relationship (ER) Model • ER model forms the basis of an ER diagram • ERD represents conceptual database as viewed by end user • ERDs depict database’s main components: – Entities – Attributes – Relationships
  • 4. Database Systems, 8th Edition 4 Entities • Refers to entity set and not to single entity occurrence • Corresponds to table and not to row in relational environment • In Chen and Crow’s Foot models, entity represented by rectangle with entity’s name • Entity name, a noun, written in capital letters
  • 5. Database Systems, 8th Edition 5 Attributes • Characteristics of entities • Chen notation: attributes represented by ovals connected to entity rectangle with a line – Each oval contains the name of attribute it represents • Crow’s Foot notation: attributes written in attribute box below entity rectangle Attribute : - ciri-ciri yang terdapat pada entiti
  • 7. Database Systems, 8th Edition 7 Attributes (continued) • Required attribute: must have a value • Optional attribute: may be left empty • Domain: set of possible values for an attribute – Attributes may share a domain • Identifiers: one or more attributes that uniquely identify each entity instance • Composite identifier: primary key composed of more than one attribute setiap attribute haruslah mempunyai nilai Domain merupakan ruang yang menghad data yang dimasukkan merujuk kepada key (sesuatu yang boleh menerangkan secara unit suatu entiti). Eg: no. matrik
  • 9. Database Systems, 8th Edition 9 Attributes (continued) • Composite attribute can be subdivided • Simple attribute cannot be subdivided • Single-value attribute can have only a single value • Multivalued attributes can have many values
  • 10. Database Systems, 8th Edition 10 2 garisan ini bermaksud “Multiple Value”.
  • 11. Database Systems, 8th Edition 11 Attributes (continued) • M:N relationships and multivalued attributes should not be implemented – Create several new attributes for each of the original multivalued attributes components – Create new entity composed of original multivalued attributes components • Derived attribute: value may be calculated from other attributes – Need not be physically stored within database
  • 12. Database Systems, 8th Edition 12 Garis putus = derive attribute
  • 13. Database Systems, 8th Edition 13 Relationships • Association between entities • Participants are entities that participate in a relationship • Relationships between entities always operate in both directions • Relationship can be classified as 1:M • Relationship classification is difficult to establish if only one side of the relationship is known
  • 14. Database Systems, 8th Edition 14 Connectivity and Cardinality • Connectivity – Describes the relationship classification • Cardinality – Expresses minimum and maximum number of entity occurrences associated with one occurrence of related entity • Established by very concise statements known as business rules CONNECTIVITY dab CARDINALITY banyak di tunjuk dalam crow foot model
  • 15. Database Systems, 8th Edition 15 minimum maximum CARA BACA: satu professor mengajar sekurang2nya 1 kelas dan maksimum 4 kelas.
  • 16. Database Systems, 8th Edition 16 Existence Dependence • Existence dependence – Entity exists in database only when it is associated with another related entity occurrence • Existence independence – Entity can exist apart from one or more related entities – Sometimes such an entity is referred to as a strong or regular entity
  • 17. Database Systems, 8th Edition 17 Relationship Strength • Weak (non-identifying) relationships – Exists if Primary Key (PK) of related entity does not contain PK component of parent entity • Strong (identifying) relationships – Exists when PK of related entity contains PK component of parent entity
  • 19. Database Systems, 8th Edition 19 PK bergabung dengan FK untuk membentuk SUPER KEY. Relationship menjadi kuat
  • 20. Database Systems, 8th Edition 20 Weak Entities • Weak entity meets two conditions – Existence-dependent – Primary key partially or totally derived from parent entity in relationship • Database designer determines whether an entity is weak based on business rules
  • 21. Database Systems, 8th Edition 21 Dua kotak ini menunjukkan entiti yang lemah
  • 23. Database Systems, 8th Edition 23 Relationship Participation • Optional participation – One entity occurrence does not require corresponding entity occurrence in particular relationship • Mandatory participation – One entity occurrence requires corresponding entity occurrence in particular relationship
  • 24. Database Systems, 8th Edition 24 CARA BACA: satu course
  • 26. Database Systems, 8th Edition 26 Relationship Degree • Indicates number of entities or participants associated with a relationship • Unary relationship – Association is maintained within single entity • Binary relationship – Two entities are associated • Ternary relationship – Three entities are associated
  • 29. Database Systems, 8th Edition 29 Recursive Relationships • Relationship can exist between occurrences of the same entity set – Naturally found within unary relationship
  • 32. Database Systems, 8th Edition 32 Associative (Composite) Entities • Also known as bridge entities • Used to implement M:N relationships • Composed of primary keys of each of the entities to be connected • May also contain additional attributes that play no role in connective process
  • 33. Database Systems, 8th Edition 33 MANY TO MANY tak boleh ada dalam database. Jadi, kalau ada MANY TO MANY relationship, kena wujudkan INTERSECTION untuk jadikan MANY TO MANY kepada ONE TO MANY
  • 35. Database Systems, 8th Edition 35 Developing an ER Diagram • Database design is an iterative process – Create detailed narrative of organization’s description of operations – Identify business rules based on description of operations – Identify main entities and relationships from business rules – Develop initial ERD – Identify attributes and primary keys that adequately describe entities – Revise and review ERD
  • 47. Database Systems, 8th Edition 47 Database Design Challenges: Conflicting Goals • Database designers must make design compromises – Conflicting goals: design standards, processing speed, information requirements • Important to meet logical requirements and design conventions • Design of little value unless it delivers all specified query and reporting requirements • Some design and implementation problems do not yield “clean” solutions
  • 49. Database Systems, 8th Edition 49 Summary • Entity relationship (ER) model – Uses ERD to represent conceptual database as viewed by end user – ERM’s main components: • Entities • Relationships • Attributes – Includes connectivity and cardinality notations
  • 50. Database Systems, 8th Edition 50 Summary (continued) • Connectivities and cardinalities are based on business rules • M:N relationship is valid at conceptual level – Must be mapped to a set of 1:M relationships • ERDs may be based on many different ERMs • Database designers are often forced to make design compromises