SlideShare uma empresa Scribd logo
1 de 31
The Enhanced E-R Model and Business Rules Modern Database Management Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden
Super types and Subtypes ,[object Object],[object Object],[object Object],[object Object],[object Object]
Figure 4-1 Basic notation for supertype/subtype relationships
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
Relationships and Subtypes ,[object Object],[object Object]
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
Generalization and Specialization ,[object Object],[object Object]
Figure 4-4 – Example of generalization (a) Three entity types: CAR, TRUCK, and MOTORCYCLE All these types of vehicles have common attributes
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
Figure 4-5 – Example of specialization (a) Entity type PART Only applies to manufactured parts Applies only to purchased parts
Figure 4-5(b) – Specialization to MANUFACTURED PART and PURCHASED PART Created 2 subtypes Note: multivalued attribute was replaced by a relationship to another entity
Constraints in Supertype/ Completeness Constraint ,[object Object],[object Object],[object Object]
Figure 4-6 – Examples of completeness constraints (a) Total  specialization rule A patient must be either an outpatient or a resident patient
Figure 4-6(b) – Partial specialization rule A vehicle could be a car, a truck, or neither
Constraints in Supertype/ Disjointness constraint ,[object Object],[object Object],[object Object]
(a) Disjoint rule Figure 4-7 – Examples of disjointness constraints A patient can either be outpatient or resident, but not both
Figure 4-7(b) Overlap rule A part may be both purchased and manufactured
Constraints in Supertype/ Subtype Discriminators ,[object Object],[object Object],[object Object]
Figure 4-8 – Introducing a subtype discriminator ( disjoint  rule) A simple attribute with different possible values indicating the subtype
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
Figure 4-10 – Example of supertype/subtype hierarchy
Entity Clusters ,[object Object],[object Object],[object Object]
Figure 4-13(a) – Possible entity clusters for Pine Valley Furniture Related groups of entities could become clusters
Figure 4-13(b) – EER diagram of PVF entity clusters More readable, isn’t it?
Business rules ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Figure 4-15 – EER depiction of business rules classification Source : adapted from GUIDE Business Rules Project, 1997.
Action Assertion Classifications ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Stating an Action Assertion ,[object Object],[object Object],[object Object],Action assertion will identify corresponding objects that constrain the ability to perform actions on anchor objects
Figure 4-16 – Data model segment for class scheduling
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 In this case, the action assertion is a  R estriction Corresponding object Corresponding object
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   assertion Anchor object Corresponding object In this case, the action assertion is an U pper  LIM it

Mais conteúdo relacionado

Mais procurados

Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Design
guest8fdbdd
 
Ch 12 O O D B Dvlpt
Ch 12  O O  D B  DvlptCh 12  O O  D B  Dvlpt
Ch 12 O O D B Dvlpt
guest8fdbdd
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
Mayank Jain
 

Mais procurados (20)

Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Design
 
Ch 12 O O D B Dvlpt
Ch 12  O O  D B  DvlptCh 12  O O  D B  Dvlpt
Ch 12 O O D B Dvlpt
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
 
The Database Environment Chapter 4
The Database Environment Chapter 4The Database Environment Chapter 4
The Database Environment Chapter 4
 
Eer case study
Eer case studyEer case study
Eer case study
 
enhanced er diagram
enhanced er diagramenhanced er diagram
enhanced er diagram
 
ER Diagram
ER DiagramER Diagram
ER Diagram
 
Participation Constraints in ER diagram
Participation Constraints in ER diagramParticipation Constraints in ER diagram
Participation Constraints in ER diagram
 
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship model
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
UML Diagram Assignment Help, UML Diagram Homework Help
UML Diagram Assignment Help, UML Diagram Homework HelpUML Diagram Assignment Help, UML Diagram Homework Help
UML Diagram Assignment Help, UML Diagram Homework Help
 
Enhanced entity relationship model
Enhanced entity relationship modelEnhanced entity relationship model
Enhanced entity relationship model
 
The Database Environment Chapter 14
The Database Environment Chapter 14The Database Environment Chapter 14
The Database Environment Chapter 14
 
Entity relation(1)
Entity relation(1)Entity relation(1)
Entity relation(1)
 
ERD - Entity Relationship Diagram
ERD - Entity Relationship DiagramERD - Entity Relationship Diagram
ERD - Entity Relationship Diagram
 
Desigining of Database - ER Model
Desigining of Database - ER ModelDesigining of Database - ER Model
Desigining of Database - ER Model
 
2 class use case
2 class use case2 class use case
2 class use case
 
Class diagram- UML diagram
Class diagram- UML diagramClass diagram- UML diagram
Class diagram- UML diagram
 

Destaque

Vikram Chatwal Final
Vikram Chatwal FinalVikram Chatwal Final
Vikram Chatwal Final
guest8fdbdd
 
Ch 1 D B Environment
Ch 1  D B  EnvironmentCh 1  D B  Environment
Ch 1 D B Environment
guest8fdbdd
 
Ch 7 Physical D B Design
Ch 7  Physical D B  DesignCh 7  Physical D B  Design
Ch 7 Physical D B Design
guest8fdbdd
 
Ansi spark
Ansi sparkAnsi spark
Ansi spark
jani
 
Narayana murthy presentation
Narayana murthy presentationNarayana murthy presentation
Narayana murthy presentation
MVIT
 
PPT on Narayan Murthy
PPT on Narayan MurthyPPT on Narayan Murthy
PPT on Narayan Murthy
Geeta Naidu
 
Ch 2 D B Dvlpt Process
Ch 2  D B  Dvlpt  ProcessCh 2  D B  Dvlpt  Process
Ch 2 D B Dvlpt Process
guest8fdbdd
 

Destaque (8)

Vikram Chatwal Final
Vikram Chatwal FinalVikram Chatwal Final
Vikram Chatwal Final
 
Ch 1 D B Environment
Ch 1  D B  EnvironmentCh 1  D B  Environment
Ch 1 D B Environment
 
Ch 7 Physical D B Design
Ch 7  Physical D B  DesignCh 7  Physical D B  Design
Ch 7 Physical D B Design
 
Distributed D B
Distributed  D BDistributed  D B
Distributed D B
 
Ansi spark
Ansi sparkAnsi spark
Ansi spark
 
Narayana murthy presentation
Narayana murthy presentationNarayana murthy presentation
Narayana murthy presentation
 
PPT on Narayan Murthy
PPT on Narayan MurthyPPT on Narayan Murthy
PPT on Narayan Murthy
 
Ch 2 D B Dvlpt Process
Ch 2  D B  Dvlpt  ProcessCh 2  D B  Dvlpt  Process
Ch 2 D B Dvlpt Process
 

Semelhante a Ch 4 E E R Biz Rules

Omg Fundamental Certification 4
Omg Fundamental Certification 4Omg Fundamental Certification 4
Omg Fundamental Certification 4
Ricardo Quintero
 
Assignment Evaluating Firm Behavior and Industry Performance With.docx
Assignment Evaluating Firm Behavior and Industry Performance With.docxAssignment Evaluating Firm Behavior and Industry Performance With.docx
Assignment Evaluating Firm Behavior and Industry Performance With.docx
jesuslightbody
 

Semelhante a Ch 4 E E R Biz Rules (20)

Lecture-6(a-b).pptx
Lecture-6(a-b).pptxLecture-6(a-b).pptx
Lecture-6(a-b).pptx
 
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...
 
Chapter04
Chapter04Chapter04
Chapter04
 
Chapter # 12 er modeling
Chapter # 12 er modelingChapter # 12 er modeling
Chapter # 12 er modeling
 
EER-database.ppt
EER-database.pptEER-database.ppt
EER-database.ppt
 
Er model
Er modelEr model
Er model
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
Chapter 8 ooad
Chapter  8 ooadChapter  8 ooad
Chapter 8 ooad
 
L7 er2
L7 er2L7 er2
L7 er2
 
database
databasedatabase
database
 
Introduction to database-ER Model
Introduction to database-ER ModelIntroduction to database-ER Model
Introduction to database-ER Model
 
Unit02 dbms
Unit02 dbmsUnit02 dbms
Unit02 dbms
 
UNIT II DBMS.pptx
UNIT II DBMS.pptxUNIT II DBMS.pptx
UNIT II DBMS.pptx
 
Coronel_PPT_Ch05 (1).ppt
Coronel_PPT_Ch05 (1).pptCoronel_PPT_Ch05 (1).ppt
Coronel_PPT_Ch05 (1).ppt
 
Omg Fundamental Certification 4
Omg Fundamental Certification 4Omg Fundamental Certification 4
Omg Fundamental Certification 4
 
Data modeling
Data modelingData modeling
Data modeling
 
Assignment Evaluating Firm Behavior and Industry Performance With.docx
Assignment Evaluating Firm Behavior and Industry Performance With.docxAssignment Evaluating Firm Behavior and Industry Performance With.docx
Assignment Evaluating Firm Behavior and Industry Performance With.docx
 
The Database Environment Chapter 3
The Database Environment Chapter 3The Database Environment Chapter 3
The Database Environment Chapter 3
 
Ooad notes
Ooad notesOoad notes
Ooad notes
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 

Mais de guest8fdbdd (20)

Wb Presentation
Wb PresentationWb Presentation
Wb Presentation
 
U T V Ppt
U T V PptU T V Ppt
U T V Ppt
 
V I D E O C O N
V I D E O C O NV I D E O C O N
V I D E O C O N
 
Tisco
TiscoTisco
Tisco
 
R A N B A X Yfinal
R A N B A X YfinalR A N B A X Yfinal
R A N B A X Yfinal
 
R A V I J A I P U R I A[1]
R A V I  J A I P U R I A[1]R A V I  J A I P U R I A[1]
R A V I J A I P U R I A[1]
 
Puma And Evisu
Puma And EvisuPuma And Evisu
Puma And Evisu
 
Ppt
PptPpt
Ppt
 
Hershey G B F L 2
Hershey  G B F L 2Hershey  G B F L 2
Hershey G B F L 2
 
Nike
NikeNike
Nike
 
L J H O O K E R 1
L J  H O O K E R 1L J  H O O K E R 1
L J H O O K E R 1
 
M I K E P A T E L 1
M I K E  P A T E L 1M I K E  P A T E L 1
M I K E P A T E L 1
 
Joy Alukkas
Joy AlukkasJoy Alukkas
Joy Alukkas
 
New Mr
New MrNew Mr
New Mr
 
Mahindra Renault
Mahindra RenaultMahindra Renault
Mahindra Renault
 
F I N A L
F I N A LF I N A L
F I N A L
 
Abhishek Saraff1
Abhishek  Saraff1Abhishek  Saraff1
Abhishek Saraff1
 
Abhishek Saraff
Abhishek  SaraffAbhishek  Saraff
Abhishek Saraff
 
L G 2
L G 2L G 2
L G 2
 
M E H U L C H O K S I
M E H U L  C H O K S IM E H U L  C H O K S I
M E H U L C H O K S I
 

Último

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Ch 4 E E R Biz Rules

  • 1. The Enhanced E-R Model and Business Rules Modern Database Management Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden
  • 2.
  • 3. Figure 4-1 Basic notation for supertype/subtype relationships
  • 4. 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.
  • 6. 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.
  • 8. Figure 4-4 – Example of generalization (a) Three entity types: CAR, TRUCK, and MOTORCYCLE All these types of vehicles have common attributes
  • 9. 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. Figure 4-5 – Example of specialization (a) Entity type PART Only applies to manufactured parts Applies only to purchased parts
  • 11. Figure 4-5(b) – Specialization to MANUFACTURED PART and PURCHASED PART Created 2 subtypes Note: multivalued attribute was replaced by a relationship to another entity
  • 12.
  • 13. Figure 4-6 – Examples of completeness constraints (a) Total specialization rule A patient must be either an outpatient or a resident patient
  • 14. Figure 4-6(b) – Partial specialization rule A vehicle could be a car, a truck, or neither
  • 15.
  • 16. (a) Disjoint rule Figure 4-7 – Examples of disjointness constraints A patient can either be outpatient or resident, but not both
  • 17. Figure 4-7(b) Overlap rule A part may be both purchased and manufactured
  • 18.
  • 19. Figure 4-8 – Introducing a subtype discriminator ( disjoint rule) A simple attribute with different possible values indicating the subtype
  • 20. 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. Figure 4-10 – Example of supertype/subtype hierarchy
  • 22.
  • 23. Figure 4-13(a) – Possible entity clusters for Pine Valley Furniture Related groups of entities could become clusters
  • 24. Figure 4-13(b) – EER diagram of PVF entity clusters More readable, isn’t it?
  • 25.
  • 26. Figure 4-15 – EER depiction of business rules classification Source : adapted from GUIDE Business Rules Project, 1997.
  • 27.
  • 28.
  • 29. Figure 4-16 – Data model segment for class scheduling
  • 30. 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 In this case, the action assertion is a R estriction Corresponding object Corresponding object
  • 31. 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 assertion Anchor object Corresponding object In this case, the action assertion is an U pper LIM it