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

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 

Último (20)

Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 

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