SlideShare a Scribd company logo
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 ch04Jotham Gadot
 
Type of database models
Type of database modelsType of database models
Type of database models
SanthiNivas
 
Data models
Data modelsData models
Data models
Dhani Ahmad
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
sabah N
 
Different data models
Different data modelsDifferent data models
Different data models
madhusha udayangani
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbmsNaresh Kumar
 
Data models
Data modelsData models
Data models
Usman Tariq
 
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]
Atik Israk
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
AhmadShah Sultani
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelSlideshare
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
Bishrul Haq
 
Database management system
Database management systemDatabase management system
Database management system
Sayed Ahmed
 
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
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Jotham Gadot
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Usman Tariq
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2
shahab3
 
Lecture 04 normalization
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization emailharmeet
 

What's hot (20)

Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04
 
Type of database models
Type of database modelsType of database models
Type of database models
 
Data models
Data modelsData models
Data models
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
 
Different data models
Different data modelsDifferent data models
Different data models
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
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]
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
 
Database management system
Database management systemDatabase management system
Database management system
 
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)
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2
 
Lecture 04 normalization
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization
 

Viewers also liked

Introduction to project management
Introduction to project managementIntroduction to project management
Introduction to project management
Dhani Ahmad
 
Project integration management
Project integration managementProject integration management
Project integration management
Dhani Ahmad
 
Business intelligence and data warehouses
Business intelligence and data warehousesBusiness intelligence and data warehouses
Business intelligence and data warehouses
Dhani Ahmad
 
Database administration and security
Database administration and securityDatabase administration and security
Database administration and security
Dhani Ahmad
 
Distributed database management systems
Distributed database management systemsDistributed database management systems
Distributed database management systems
Dhani Ahmad
 
Database Management Systems 1
Database Management Systems 1Database Management Systems 1
Database Management Systems 1
Nickkisha Farrell
 
Database Model
Database ModelDatabase Model
Database Model
laurel828
 
Database
DatabaseDatabase
Database
Dhani Ahmad
 
Strategic planning
Strategic planningStrategic planning
Strategic planning
Dhani Ahmad
 
Types of islamic institutions and records
Types of islamic institutions and recordsTypes of islamic institutions and records
Types of islamic institutions and records
Dhani Ahmad
 
Chap01 introduction to project management
Chap01 introduction to project managementChap01 introduction to project management
Chap01 introduction to project management
Dhani Ahmad
 
Project management IT Project Management
Project management IT Project Management Project management IT Project Management
Project management IT Project Management
Amanda Haddad
 
Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04
Beni Krisbiantoro
 
Information system
Information systemInformation system
Information systemDhani Ahmad
 
Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02
Beni Krisbiantoro
 
Chap03 the project management process groups
Chap03 the project management process groupsChap03 the project management process groups
Chap03 the project management process groups
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 analysisDhani Ahmad
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and ImplementationChristian Reina
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Processmussawir20
 

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
 
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
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and Implementation
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
 

Similar to Entity relationship (er) modeling

02010 ppt ch04
02010 ppt ch0402010 ppt ch04
02010 ppt ch04
ams1ams1
 
03 chapter
03 chapter03 chapter
03 chapter
Darshan Kumar
 
02010 ppt ch02
02010 ppt ch0202010 ppt ch02
02010 ppt ch02Hpong Js
 
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
TamiratDejene1
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In Introduction
Rajeev Srivastava
 
Relational model
Relational modelRelational model
Relational model
WBUTTUTORIALS
 
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
MaryJoseph79
 
oracle
oracle oracle
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
TamiratDejene1
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
VasanthiMuniasamy2
 
IT6701 Information Management - Unit I
IT6701 Information Management - Unit I  IT6701 Information Management - Unit I
IT6701 Information Management - Unit I
pkaviya
 
database management system
database management systemdatabase management system
database management system
Nivetha Ganesan
 
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
 
Module 1 session 5
Module 1   session 5Module 1   session 5
Module 1 session 5
raghuinfo
 
IS740 Chapter 05
IS740 Chapter 05IS740 Chapter 05
IS740 Chapter 05
iDocs
 
ch2-slide Data Models.pptx
ch2-slide Data Models.pptxch2-slide Data Models.pptx
ch2-slide Data Models.pptx
TamiratDejene1
 
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
Infotech27
 
Relational databases.pdf
Relational databases.pdfRelational databases.pdf
Relational databases.pdf
chandiruirene
 
DBMS ppts unit1.pptx
DBMS ppts  unit1.pptxDBMS ppts  unit1.pptx
DBMS ppts unit1.pptx
VaibhavSaluja1
 

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

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

Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
vikram sood
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
apvysm8
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 

Recently uploaded (20)

Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 

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