SlideShare a Scribd company logo
1 of 31
1
© Prentice Hall, 2002
Chapter 4:Chapter 4:
The Enhanced E-R Model andThe Enhanced E-R Model and
Business RulesBusiness Rules
Modern Database Management
6th
Edition
Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
McFadden
2Chapter 4
© Prentice Hall, 2002
Supertypes and SubtypesSupertypes and Subtypes
Subtype:Subtype: A subgrouping of the entities in an entity type
which has attributes that are distinct from those in other
subgroupings
Supertype:Supertype: An generic entity type that has a
relationship with one or more subtypes
Inheritance:Inheritance:
– Subtype entities inherit values of all attributes of the
supertype
– An instance of a subtype is also an instance of the
supertype
3Chapter 4
© Prentice Hall, 2002
Figure 4-1
Basic notation for
supertype/subtype
relationships
4Chapter 4
© Prentice Hall, 2002
Figure 4-2 -- Employee supertype with three subtypes
All employee subtypes
will have emp nbr, name,
address, and date-hired
Each employee subtype
will also have its own
attributes
5Chapter 4
© Prentice Hall, 2002
Relationships and SubtypesRelationships and Subtypes
Relationships at the supertype level indicate
that all subtypes will participate in the
relationship
The instances of a subtype may participate
in a relationship unique to that subtype. In
this situation, the relationship is shown at
the subtype level
6Chapter 4
© Prentice Hall, 2002
Figure 4-3 -- Supertype/subtype relationships in a hospital
Both outpatients and resident
patients are cared for by a
responsible physician
Only resident patients are
assigned to a bed
7Chapter 4
© Prentice Hall, 2002
Generalization andGeneralization and
SpecializationSpecialization
Generalization: The process of defining a
more general entity type from a set of more
specialized entity types. BOTTOM-UPBOTTOM-UP
Specialization: The process of defining
one or more subtypes of the supertype, and
forming supertype/subtype relationships.
TOP-DOWNTOP-DOWN
8Chapter 4
© Prentice Hall, 2002
Figure 4-4 – Example of generalization
(a) Three entity types: CAR, TRUCK, and MOTORCYCLE
All these types
of vehicles
have common
attributes
9Chapter 4
© Prentice Hall, 2002
Figure 4-4(b) – Generalization to VEHICLE supertype
So we put
the shared
attributes in
a supertype
Note: no subtype for motorcycle, since it has no unique attributes
10Chapter 4
© Prentice Hall, 2002
Figure 4-5 – Example of specialization
(a) Entity type PART
Only applies to
manufactured
parts
Applies only to purchased parts
11Chapter 4
© Prentice Hall, 2002
Figure 4-5(b) –
Specialization to MANUFACTURED PART and PURCHASED PART
Note: multivalued attribute was replaced by a relationship to another entity
Created 2 subtypes
12Chapter 4
© Prentice Hall, 2002
Constraints in Supertype/Constraints in Supertype/
Completeness ConstraintCompleteness Constraint
Completeness Constraints: Whether an
instance of a supertype must also be a
member of at least one subtype
– Total Specialization Rule: Yes (double line)
– Partial Specialization Rule: No (single line)
13Chapter 4
© Prentice Hall, 2002
Figure 4-6 – Examples of completeness constraints
(a) Total specialization rule
A patient must be either
an outpatient or a
resident patient
14Chapter 4
© Prentice Hall, 2002
Figure 4-6(b) – Partial specialization rule
A vehicle could be a
car, a truck, or neither
15Chapter 4
© Prentice Hall, 2002
Constraints in Supertype/Constraints in Supertype/
Disjointness constraintDisjointness constraint
Disjointness Constraints: Whether an
instance of a supertype may simultaneously
be a member of two (or more) subtypes.
– Disjoint Rule: An instance of the supertype can
be only ONE of the subtypes
– Overlap Rule: An instance of the supertype
could be more than one of the subtypes
16Chapter 4
© Prentice Hall, 2002
(a) Disjoint rule
Figure 4-7 – Examples of disjointness constraints
A patient can either be outpatient
or resident, but not both
17Chapter 4
© Prentice Hall, 2002
Figure 4-7(b) Overlap rule
A part may be
both purchased
and manufactured
18Chapter 4
© Prentice Hall, 2002
Constraints in Supertype/Constraints in Supertype/
Subtype DiscriminatorsSubtype Discriminators
Subtype Discriminator: An attribute of the
supertype whose values determine the target
subtype(s)
– Disjoint – a simple attribute with alternative values to
indicate the possible subtypes
– Overlapping – a composite attribute whose subparts
pertain to different subtypes. Each subpart contains a
boolean value to indicate whether or not the instance
belongs to the associated subtype
19Chapter 4
© Prentice Hall, 2002
Figure 4-8 – Introducing a subtype discriminator (disjoint rule)
A simple attribute with
different possible values
indicating the subtype
20Chapter 4
© Prentice Hall, 2002
Figure 4-9 – Subtype discriminator (overlap rule)
A composite attribute
with sub-attributes
indicating “yes” or “no”
to determine whether it
is of each subtype
21Chapter 4
© Prentice Hall, 2002
Figure 4-10 – Example of supertype/subtype hierarchy
22Chapter 4
© Prentice Hall, 2002
Entity ClustersEntity Clusters
EER diagrams are difficult to read when
there are too many entities and relationships
Solution: group entities and relationships
into entity clusters
Entity cluster: set of one or more entity
types and associated relationships grouped
into a single abstract entity type
23Chapter 4
© Prentice Hall, 2002
Figure 4-13(a) –
Possible entity clusters
for Pine Valley Furniture
Related
groups of
entities could
become
clusters
24Chapter 4
© Prentice Hall, 2002
Figure 4-13(b) – EER diagram of PVF entity clusters
More readable,
isn’t it?
25Chapter 4
© Prentice Hall, 2002
Business rulesBusiness rules
 Statements that define or constrain some aspect of the
business.
 Constraints can impact:
– Structure (definition, domain, relationship)
– Behavior (operational constraints)
 Classification of business rules:
– Derivation – rule derived from other knowledge
– Structural assertion – rule expressing static structure
– Action assertion – rule expressing constraints/control of
organizational actions
26Chapter 4
© Prentice Hall, 2002
Figure 4-15 –
EER depiction of
business rules
classification
Source: adapted from GUIDE Business Rules Project, 1997.
27Chapter 4
© Prentice Hall, 2002
Action Assertion ClassificationsAction Assertion Classifications
 Result
– Condition – IF/THEN rule
– Integrity constraint – must always be true
– Authorization – privilege statement
 Form
– Enabler – leads to creation of new object
– Timer – allows or disallows an action
– Executive – executes one or more actions
 Rigor
– Controlling – something must or must not happen
– Influencing – guideline for which a notification must
occur
28Chapter 4
© Prentice Hall, 2002
Stating an Action AssertionStating an Action Assertion
Anchor Object – an object on which actions
are limited
Action – creation, deletion, update, or read
Corresponding Objects – an object
influencing the ability to perform an action
on another business rule
Action assertion will identify corresponding objects thatAction assertion will identify corresponding objects that
constrain the ability to perform actions on anchor objectsconstrain the ability to perform actions on anchor objects
29Chapter 4
© Prentice Hall, 2002
Figure 4-16 – Data model segment for class scheduling
30Chapter 4
© Prentice Hall, 2002
Figure 4-17 – Business Rule 1: For a faculty member to be assigned
to teach a section of a course, the faculty member must be qualified to
teach the course for which that section is scheduled
Action assertion
Anchor object
Corresponding object
Corresponding object
In this case, the
action assertion
is a RRestriction
31Chapter 4
© Prentice Hall, 2002
Figure 4-18 –Business Rule 2: For a faculty member to be assigned to
teach a section of a course, the faculty member must not be assigned to
teach a total of more than three course sections
Action assertionAnchor object
Corresponding object
In this case, the
action assertion
is an
UUpper LIMLIMit

More Related Content

What's hot

Base de datos orientada a objetos vs base obje to relacion
Base de datos orientada a objetos vs base obje to relacionBase de datos orientada a objetos vs base obje to relacion
Base de datos orientada a objetos vs base obje to relacionAlfonso Triana
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database DesignArchit Saxena
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptxSubhamSarkar64
 
Optimizacion de la busqueda de discos
Optimizacion de la busqueda de discosOptimizacion de la busqueda de discos
Optimizacion de la busqueda de discosJazmín Limón
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2shahab3
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a DatabaseBishrul Haq
 
Normalizacion de bases de datos
Normalizacion de bases de datosNormalizacion de bases de datos
Normalizacion de bases de datosCaro_Noirgean
 
Database management systems cs403 power point slides lecture 04
Database management systems   cs403 power point slides lecture 04Database management systems   cs403 power point slides lecture 04
Database management systems cs403 power point slides lecture 04Md.Abu Sayed
 
Gestión de procesos en sistemas operativos
Gestión de procesos en sistemas operativosGestión de procesos en sistemas operativos
Gestión de procesos en sistemas operativoschikscorpion_23
 
Transaction management and concurrency control
Transaction management and concurrency controlTransaction management and concurrency control
Transaction management and concurrency controlDhani Ahmad
 
Advanced data modeling
Advanced data modelingAdvanced data modeling
Advanced data modelingDhani Ahmad
 
Enfoque estructurado enfoque oo
Enfoque estructurado   enfoque ooEnfoque estructurado   enfoque oo
Enfoque estructurado enfoque ookarlanm07
 
Ingenieria de Software-Somerville.pdf
Ingenieria de Software-Somerville.pdfIngenieria de Software-Somerville.pdf
Ingenieria de Software-Somerville.pdfSergio283420
 

What's hot (20)

Base de datos orientada a objetos vs base obje to relacion
Base de datos orientada a objetos vs base obje to relacionBase de datos orientada a objetos vs base obje to relacion
Base de datos orientada a objetos vs base obje to relacion
 
Tecnicas de Administracion de Memoria
Tecnicas de Administracion de MemoriaTecnicas de Administracion de Memoria
Tecnicas de Administracion de Memoria
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptx
 
Optimizacion de la busqueda de discos
Optimizacion de la busqueda de discosOptimizacion de la busqueda de discos
Optimizacion de la busqueda de discos
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2
 
Metodologia para el proyecto
Metodologia para el proyectoMetodologia para el proyecto
Metodologia para el proyecto
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
 
Formas Normales
Formas NormalesFormas Normales
Formas Normales
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Normalizacion de bases de datos
Normalizacion de bases de datosNormalizacion de bases de datos
Normalizacion de bases de datos
 
Analisisydisenosistinformacion
AnalisisydisenosistinformacionAnalisisydisenosistinformacion
Analisisydisenosistinformacion
 
Desnormalización de Base de Datos
Desnormalización de Base de DatosDesnormalización de Base de Datos
Desnormalización de Base de Datos
 
Database management systems cs403 power point slides lecture 04
Database management systems   cs403 power point slides lecture 04Database management systems   cs403 power point slides lecture 04
Database management systems cs403 power point slides lecture 04
 
Gestión de procesos en sistemas operativos
Gestión de procesos en sistemas operativosGestión de procesos en sistemas operativos
Gestión de procesos en sistemas operativos
 
Transaction management and concurrency control
Transaction management and concurrency controlTransaction management and concurrency control
Transaction management and concurrency control
 
Advanced data modeling
Advanced data modelingAdvanced data modeling
Advanced data modeling
 
Enfoque estructurado enfoque oo
Enfoque estructurado   enfoque ooEnfoque estructurado   enfoque oo
Enfoque estructurado enfoque oo
 
Ingenieria de Software-Somerville.pdf
Ingenieria de Software-Somerville.pdfIngenieria de Software-Somerville.pdf
Ingenieria de Software-Somerville.pdf
 
Ch5 system modeling
Ch5 system modelingCh5 system modeling
Ch5 system modeling
 

Similar to The Database Environment Chapter 4

Lecture-6(a-b).pptx
Lecture-6(a-b).pptxLecture-6(a-b).pptx
Lecture-6(a-b).pptxlaiba29012
 
Ch 4 E E R Biz Rules
Ch 4  E E R  Biz RulesCh 4  E E R  Biz Rules
Ch 4 E E R Biz Rulesguest8fdbdd
 
The Database Environment Chapter 14
The Database Environment Chapter 14The Database Environment Chapter 14
The Database Environment Chapter 14Jeanie Arnoco
 
Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...zammok
 
The Database Environment Chapter 3
The Database Environment Chapter 3The Database Environment Chapter 3
The Database Environment Chapter 3Jeanie Arnoco
 
Ch 5 O O Data Modeling
Ch 5  O O  Data ModelingCh 5  O O  Data Modeling
Ch 5 O O Data Modelingguest8fdbdd
 
Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2Haitham Raik
 
Ch 5 O O Data Modeling Class
Ch 5  O O  Data Modeling ClassCh 5  O O  Data Modeling Class
Ch 5 O O Data Modeling Classguest8fdbdd
 
CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV pkaviya
 
AN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATION
AN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATIONAN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATION
AN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATIONecij
 
Sadcw 7e chapter04_recorded
Sadcw 7e chapter04_recordedSadcw 7e chapter04_recorded
Sadcw 7e chapter04_recordedLamineKaba6
 
Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)LamineKaba6
 
Practical dimensions
Practical dimensionsPractical dimensions
Practical dimensionstholem
 
M03_1_Structur alDiagrams.ppt
M03_1_Structur                         alDiagrams.pptM03_1_Structur                         alDiagrams.ppt
M03_1_Structur alDiagrams.pptnesarahmad37
 
CHM 101 Final Project
CHM 101 Final Project CHM 101 Final Project
CHM 101 Final Project JinElias52
 

Similar to The Database Environment Chapter 4 (20)

Lecture-6(a-b).pptx
Lecture-6(a-b).pptxLecture-6(a-b).pptx
Lecture-6(a-b).pptx
 
Ch 4 E E R Biz Rules
Ch 4  E E R  Biz RulesCh 4  E E R  Biz Rules
Ch 4 E E R Biz Rules
 
The Database Environment Chapter 14
The Database Environment Chapter 14The Database Environment Chapter 14
The Database Environment Chapter 14
 
Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...
 
The Database Environment Chapter 3
The Database Environment Chapter 3The Database Environment Chapter 3
The Database Environment Chapter 3
 
Ch 5 O O Data Modeling
Ch 5  O O  Data ModelingCh 5  O O  Data Modeling
Ch 5 O O Data Modeling
 
Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2
 
Ch 5 O O Data Modeling Class
Ch 5  O O  Data Modeling ClassCh 5  O O  Data Modeling Class
Ch 5 O O Data Modeling Class
 
1 er
1 er1 er
1 er
 
21792 relational database managementsystem
21792 relational database managementsystem21792 relational database managementsystem
21792 relational database managementsystem
 
CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV
 
AN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATION
AN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATIONAN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATION
AN ENVIRONMENT FOR NON-DUPLICATE TEST GENERATION FOR WEB BASED APPLICATION
 
Sadcw 7e chapter04_recorded
Sadcw 7e chapter04_recordedSadcw 7e chapter04_recorded
Sadcw 7e chapter04_recorded
 
Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)
 
Practical dimensions
Practical dimensionsPractical dimensions
Practical dimensions
 
M03_1_Structur alDiagrams.ppt
M03_1_Structur                         alDiagrams.pptM03_1_Structur                         alDiagrams.ppt
M03_1_Structur alDiagrams.ppt
 
hrm10ech04.ppt
hrm10ech04.ppthrm10ech04.ppt
hrm10ech04.ppt
 
Chap22
Chap22Chap22
Chap22
 
JavaHTP6e_10.ppt
JavaHTP6e_10.pptJavaHTP6e_10.ppt
JavaHTP6e_10.ppt
 
CHM 101 Final Project
CHM 101 Final Project CHM 101 Final Project
CHM 101 Final Project
 

More from Jeanie Arnoco

The Database Environment Chapter 15
The Database Environment Chapter 15The Database Environment Chapter 15
The Database Environment Chapter 15Jeanie Arnoco
 
The Database Environment Chapter 13
The Database Environment Chapter 13The Database Environment Chapter 13
The Database Environment Chapter 13Jeanie Arnoco
 
The Database Environment Chapter 12
The Database Environment Chapter 12The Database Environment Chapter 12
The Database Environment Chapter 12Jeanie Arnoco
 
The Database Environment Chapter 11
The Database Environment Chapter 11The Database Environment Chapter 11
The Database Environment Chapter 11Jeanie Arnoco
 
The Database Environment Chapter 10
The Database Environment Chapter 10The Database Environment Chapter 10
The Database Environment Chapter 10Jeanie Arnoco
 
The Database Environment Chapter 9
The Database Environment Chapter 9The Database Environment Chapter 9
The Database Environment Chapter 9Jeanie Arnoco
 
The Database Environment Chapter 8
The Database Environment Chapter 8The Database Environment Chapter 8
The Database Environment Chapter 8Jeanie Arnoco
 
The Database Environment Chapter 7
The Database Environment Chapter 7The Database Environment Chapter 7
The Database Environment Chapter 7Jeanie Arnoco
 
The Database Environment Chapter 6
The Database Environment Chapter 6The Database Environment Chapter 6
The Database Environment Chapter 6Jeanie Arnoco
 
The Database Environment Chapter 5
The Database Environment Chapter 5The Database Environment Chapter 5
The Database Environment Chapter 5Jeanie Arnoco
 
The Database Environment Chapter 2
The Database Environment Chapter 2The Database Environment Chapter 2
The Database Environment Chapter 2Jeanie Arnoco
 
The Database Environment Chapter 1
The Database Environment Chapter 1The Database Environment Chapter 1
The Database Environment Chapter 1Jeanie Arnoco
 
Introduction to BOOTSTRAP
Introduction to BOOTSTRAPIntroduction to BOOTSTRAP
Introduction to BOOTSTRAPJeanie Arnoco
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Jeanie Arnoco
 
Hacking and Online Security
Hacking and Online SecurityHacking and Online Security
Hacking and Online SecurityJeanie Arnoco
 
(CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region (CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region Jeanie Arnoco
 
Quick sort-Data Structure
Quick sort-Data StructureQuick sort-Data Structure
Quick sort-Data StructureJeanie Arnoco
 
Quality Gurus Student
Quality Gurus StudentQuality Gurus Student
Quality Gurus StudentJeanie Arnoco
 
Partnering for Competition: External Partnership
Partnering for Competition: External PartnershipPartnering for Competition: External Partnership
Partnering for Competition: External PartnershipJeanie Arnoco
 

More from Jeanie Arnoco (20)

The Database Environment Chapter 15
The Database Environment Chapter 15The Database Environment Chapter 15
The Database Environment Chapter 15
 
The Database Environment Chapter 13
The Database Environment Chapter 13The Database Environment Chapter 13
The Database Environment Chapter 13
 
The Database Environment Chapter 12
The Database Environment Chapter 12The Database Environment Chapter 12
The Database Environment Chapter 12
 
The Database Environment Chapter 11
The Database Environment Chapter 11The Database Environment Chapter 11
The Database Environment Chapter 11
 
The Database Environment Chapter 10
The Database Environment Chapter 10The Database Environment Chapter 10
The Database Environment Chapter 10
 
The Database Environment Chapter 9
The Database Environment Chapter 9The Database Environment Chapter 9
The Database Environment Chapter 9
 
The Database Environment Chapter 8
The Database Environment Chapter 8The Database Environment Chapter 8
The Database Environment Chapter 8
 
The Database Environment Chapter 7
The Database Environment Chapter 7The Database Environment Chapter 7
The Database Environment Chapter 7
 
The Database Environment Chapter 6
The Database Environment Chapter 6The Database Environment Chapter 6
The Database Environment Chapter 6
 
The Database Environment Chapter 5
The Database Environment Chapter 5The Database Environment Chapter 5
The Database Environment Chapter 5
 
The Database Environment Chapter 2
The Database Environment Chapter 2The Database Environment Chapter 2
The Database Environment Chapter 2
 
The Database Environment Chapter 1
The Database Environment Chapter 1The Database Environment Chapter 1
The Database Environment Chapter 1
 
Introduction to BOOTSTRAP
Introduction to BOOTSTRAPIntroduction to BOOTSTRAP
Introduction to BOOTSTRAP
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
 
Hacking and Online Security
Hacking and Online SecurityHacking and Online Security
Hacking and Online Security
 
(CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region (CAR)Cordillera Administrative Region
(CAR)Cordillera Administrative Region
 
Quick sort-Data Structure
Quick sort-Data StructureQuick sort-Data Structure
Quick sort-Data Structure
 
Quality Gurus Student
Quality Gurus StudentQuality Gurus Student
Quality Gurus Student
 
QUALITY STANDARDS
QUALITY STANDARDSQUALITY STANDARDS
QUALITY STANDARDS
 
Partnering for Competition: External Partnership
Partnering for Competition: External PartnershipPartnering for Competition: External Partnership
Partnering for Competition: External Partnership
 

Recently uploaded

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

The Database Environment Chapter 4

  • 1. 1 © Prentice Hall, 2002 Chapter 4:Chapter 4: The Enhanced E-R Model andThe Enhanced E-R Model and Business RulesBusiness Rules Modern Database Management 6th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden
  • 2. 2Chapter 4 © Prentice Hall, 2002 Supertypes and SubtypesSupertypes and Subtypes Subtype:Subtype: A subgrouping of the entities in an entity type which has attributes that are distinct from those in other subgroupings Supertype:Supertype: An generic entity type that has a relationship with one or more subtypes Inheritance:Inheritance: – Subtype entities inherit values of all attributes of the supertype – An instance of a subtype is also an instance of the supertype
  • 3. 3Chapter 4 © Prentice Hall, 2002 Figure 4-1 Basic notation for supertype/subtype relationships
  • 4. 4Chapter 4 © Prentice Hall, 2002 Figure 4-2 -- Employee supertype with three subtypes All employee subtypes will have emp nbr, name, address, and date-hired Each employee subtype will also have its own attributes
  • 5. 5Chapter 4 © Prentice Hall, 2002 Relationships and SubtypesRelationships and Subtypes Relationships at the supertype level indicate that all subtypes will participate in the relationship The instances of a subtype may participate in a relationship unique to that subtype. In this situation, the relationship is shown at the subtype level
  • 6. 6Chapter 4 © Prentice Hall, 2002 Figure 4-3 -- Supertype/subtype relationships in a hospital Both outpatients and resident patients are cared for by a responsible physician Only resident patients are assigned to a bed
  • 7. 7Chapter 4 © Prentice Hall, 2002 Generalization andGeneralization and SpecializationSpecialization Generalization: The process of defining a more general entity type from a set of more specialized entity types. BOTTOM-UPBOTTOM-UP Specialization: The process of defining one or more subtypes of the supertype, and forming supertype/subtype relationships. TOP-DOWNTOP-DOWN
  • 8. 8Chapter 4 © Prentice Hall, 2002 Figure 4-4 – Example of generalization (a) Three entity types: CAR, TRUCK, and MOTORCYCLE All these types of vehicles have common attributes
  • 9. 9Chapter 4 © Prentice Hall, 2002 Figure 4-4(b) – Generalization to VEHICLE supertype So we put the shared attributes in a supertype Note: no subtype for motorcycle, since it has no unique attributes
  • 10. 10Chapter 4 © Prentice Hall, 2002 Figure 4-5 – Example of specialization (a) Entity type PART Only applies to manufactured parts Applies only to purchased parts
  • 11. 11Chapter 4 © Prentice Hall, 2002 Figure 4-5(b) – Specialization to MANUFACTURED PART and PURCHASED PART Note: multivalued attribute was replaced by a relationship to another entity Created 2 subtypes
  • 12. 12Chapter 4 © Prentice Hall, 2002 Constraints in Supertype/Constraints in Supertype/ Completeness ConstraintCompleteness Constraint Completeness Constraints: Whether an instance of a supertype must also be a member of at least one subtype – Total Specialization Rule: Yes (double line) – Partial Specialization Rule: No (single line)
  • 13. 13Chapter 4 © Prentice Hall, 2002 Figure 4-6 – Examples of completeness constraints (a) Total specialization rule A patient must be either an outpatient or a resident patient
  • 14. 14Chapter 4 © Prentice Hall, 2002 Figure 4-6(b) – Partial specialization rule A vehicle could be a car, a truck, or neither
  • 15. 15Chapter 4 © Prentice Hall, 2002 Constraints in Supertype/Constraints in Supertype/ Disjointness constraintDisjointness constraint Disjointness Constraints: Whether an instance of a supertype may simultaneously be a member of two (or more) subtypes. – Disjoint Rule: An instance of the supertype can be only ONE of the subtypes – Overlap Rule: An instance of the supertype could be more than one of the subtypes
  • 16. 16Chapter 4 © Prentice Hall, 2002 (a) Disjoint rule Figure 4-7 – Examples of disjointness constraints A patient can either be outpatient or resident, but not both
  • 17. 17Chapter 4 © Prentice Hall, 2002 Figure 4-7(b) Overlap rule A part may be both purchased and manufactured
  • 18. 18Chapter 4 © Prentice Hall, 2002 Constraints in Supertype/Constraints in Supertype/ Subtype DiscriminatorsSubtype Discriminators Subtype Discriminator: An attribute of the supertype whose values determine the target subtype(s) – Disjoint – a simple attribute with alternative values to indicate the possible subtypes – Overlapping – a composite attribute whose subparts pertain to different subtypes. Each subpart contains a boolean value to indicate whether or not the instance belongs to the associated subtype
  • 19. 19Chapter 4 © Prentice Hall, 2002 Figure 4-8 – Introducing a subtype discriminator (disjoint rule) A simple attribute with different possible values indicating the subtype
  • 20. 20Chapter 4 © Prentice Hall, 2002 Figure 4-9 – Subtype discriminator (overlap rule) A composite attribute with sub-attributes indicating “yes” or “no” to determine whether it is of each subtype
  • 21. 21Chapter 4 © Prentice Hall, 2002 Figure 4-10 – Example of supertype/subtype hierarchy
  • 22. 22Chapter 4 © Prentice Hall, 2002 Entity ClustersEntity Clusters EER diagrams are difficult to read when there are too many entities and relationships Solution: group entities and relationships into entity clusters Entity cluster: set of one or more entity types and associated relationships grouped into a single abstract entity type
  • 23. 23Chapter 4 © Prentice Hall, 2002 Figure 4-13(a) – Possible entity clusters for Pine Valley Furniture Related groups of entities could become clusters
  • 24. 24Chapter 4 © Prentice Hall, 2002 Figure 4-13(b) – EER diagram of PVF entity clusters More readable, isn’t it?
  • 25. 25Chapter 4 © Prentice Hall, 2002 Business rulesBusiness rules  Statements that define or constrain some aspect of the business.  Constraints can impact: – Structure (definition, domain, relationship) – Behavior (operational constraints)  Classification of business rules: – Derivation – rule derived from other knowledge – Structural assertion – rule expressing static structure – Action assertion – rule expressing constraints/control of organizational actions
  • 26. 26Chapter 4 © Prentice Hall, 2002 Figure 4-15 – EER depiction of business rules classification Source: adapted from GUIDE Business Rules Project, 1997.
  • 27. 27Chapter 4 © Prentice Hall, 2002 Action Assertion ClassificationsAction Assertion Classifications  Result – Condition – IF/THEN rule – Integrity constraint – must always be true – Authorization – privilege statement  Form – Enabler – leads to creation of new object – Timer – allows or disallows an action – Executive – executes one or more actions  Rigor – Controlling – something must or must not happen – Influencing – guideline for which a notification must occur
  • 28. 28Chapter 4 © Prentice Hall, 2002 Stating an Action AssertionStating an Action Assertion Anchor Object – an object on which actions are limited Action – creation, deletion, update, or read Corresponding Objects – an object influencing the ability to perform an action on another business rule Action assertion will identify corresponding objects thatAction assertion will identify corresponding objects that constrain the ability to perform actions on anchor objectsconstrain the ability to perform actions on anchor objects
  • 29. 29Chapter 4 © Prentice Hall, 2002 Figure 4-16 – Data model segment for class scheduling
  • 30. 30Chapter 4 © Prentice Hall, 2002 Figure 4-17 – Business Rule 1: For a faculty member to be assigned to teach a section of a course, the faculty member must be qualified to teach the course for which that section is scheduled Action assertion Anchor object Corresponding object Corresponding object In this case, the action assertion is a RRestriction
  • 31. 31Chapter 4 © Prentice Hall, 2002 Figure 4-18 –Business Rule 2: For a faculty member to be assigned to teach a section of a course, the faculty member must not be assigned to teach a total of more than three course sections Action assertionAnchor object Corresponding object In this case, the action assertion is an UUpper LIMLIMit