SlideShare ist ein Scribd-Unternehmen logo
1 von 38
 
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright © 2004 Pearson Education, Inc.
Chapter Outline ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example COMPANY Database ,[object Object],[object Object],[object Object]
Example COMPANY Database (Cont.) ,[object Object],[object Object]
ER Model Concepts ,[object Object],[object Object],[object Object],[object Object],[object Object]
Types of Attributes (1) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Types of Attributes (2) ,[object Object]
Entity Types and Key Attributes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ENTITY SET corresponding to the ENTITY TYPE CAR car 1 ((ABC 123, TEXAS), TK629, Ford Mustang, convertible, 1999, {red, black}) car 2 ((ABC 123, NEW YORK), WP9872, Nissan 300ZX, 2-door, 2002, {blue}) car 3 ((VSY 720, TEXAS), TD729, Buick LeSabre, 4-door, 2003, {white, blue}) . . . CAR Registration(RegistrationNumber, State), VehicleID, Make, Model, Year, {Color}
SUMMARY OF ER-DIAGRAM  NOTATION FOR ER SCHEMAS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Symbol R E 2 E 1 R E 2 R (min,max) E N E 1
ER DIAGRAM – Entity Types are: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT
Relationships and Relationship Types (1) ,[object Object],[object Object],[object Object]
Example relationship instances of the WORKS_FOR relationship between EMPLOYEE and DEPARTMENT e 1   e 2   e 3   e 4   e 5   e 6   e 7   EMPLOYEE r 1 r 2 r 3 r 4 r 5 r 6 r 7 WORKS_FOR    d 1    d 2    d 3 DEPARTMENT
Example relationship instances of the WORKS_ON relationship between EMPLOYEE and PROJECT e 1   e 2   e 3   e 4   e 5   e 6   e 7   r 1 r 2 r 3 r 4 r 5 r 6 r 7    p 1    p 2    p 3 r 8 r 9
Relationships and Relationship Types (2) ,[object Object]
ER DIAGRAM – Relationship Types are: WORKS_FOR, MANAGES, WORKS_ON, CONTROLS, SUPERVISION, DEPENDENTS_OF
Weak Entity Types ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Weak Entity Type is:  DEPENDENT Identifying Relationship is:  DEPENDENTS_OF
Constraints on Relationships ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Many-to-one (N:1) RELATIONSHIP e 1   e 2   e 3   e 4   e 5   e 6   e 7   EMPLOYEE r 1 r 2 r 3 r 4 r 5 r 6 r 7 WORKS_FOR    d 1    d 2    d 3 DEPARTMENT
Many-to-many (M:N) RELATIONSHIP e 1   e 2   e 3   e 4   e 5   e 6   e 7   r 1 r 2 r 3 r 4 r 5 r 6 r 7    p 1    p 2    p 3 r 8 r 9
Relationships and Relationship Types (3) ,[object Object],[object Object],[object Object],[object Object],[object Object]
A RECURSIVE RELATIONSHIP  SUPERVISION e 1   e 2   e 3   e 4   e 5   e 6   e 7   EMPLOYEE r 1 r 2 r 3 r 4 r 5 r 6 SUPERVISION 2 1 1 2 2 1 1 1 2 1 2 2 © The Benjamin/Cummings Publishing Company, Inc. 1994, Elmasri/Navathe, Fundamentals of Database Systems, Second Edition
Recursive Relationship Type is:  SUPERVISION (participation role names are shown)
Attributes of Relationship types ,[object Object]
Attribute of a Relationship Type is:  Hours of WORKS_ON
Structural Constraints –  one way to express semantics  of relationships ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Alternative (min, max) notation for relationship structural constraints: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The (min,max) notation relationship constraints Employee Department Manages (1,1) (0,1) Employee Department Works-for (1,N) (1,1)
COMPANY ER Schema Diagram  using (min, max) notation
Relationships of Higher Degree ,[object Object],[object Object],[object Object],[object Object]
Data Modeling Tools ,[object Object],[object Object]
Problems with Current Modeling Tools ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Some of the Currently Available Automated Database  Design Tools Data modeling, design and reengineering Visual Basic and Visual C++ Visio Enterprise Visio Data modeling, business logic modeling Enterprise Application Suite Sybase Conceptual modeling up to code maintenance Xcase Resolution Ltd. Mapping from O-O to relational model RW Metro Rogue Ware Modeling in UML and application generation in C++ and JAVA Rational Rose Rational Mapping from O-O to relational model Pwertier Persistence Inc. Data, process, and business component modeling Platinum Enterprice Modeling Suite: Erwin, BPWin, Paradigm Plus Platinum Technology Data modeling, object modeling, process modeling, structured analysis/design System Architect 2001 Popkin Software Database modeling, application development Developer 2000 and Designer 2000 Oracle Database administration and space and security management DB Artisan Database Modeling in ER and IDEF1X ER Studio Embarcadero Technologies FUNCTIONALITY TOOL COMPANY
ER DIAGRAM FOR A BANK  DATABASE © The Benjamin/Cummings Publishing Company, Inc. 1994, Elmasri/Navathe, Fundamentals of Database Systems, Second Edition
PROBLEM with ER notation ,[object Object]
Extended Entity-Relationship (EER) Model ,[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
 
1 introduction databases and database users
1 introduction databases and database users1 introduction databases and database users
1 introduction databases and database users
Kumar
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
PAQUIAAIZEL
 

Was ist angesagt? (20)

Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMS
 
Sql commands
Sql commandsSql commands
Sql commands
 
ER Diagram
ER DiagramER Diagram
ER Diagram
 
Chapter 4 Structured Query Language
Chapter 4 Structured Query LanguageChapter 4 Structured Query Language
Chapter 4 Structured Query Language
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
 
Database Systems - Relational Data Model (Chapter 2)
Database Systems - Relational Data Model (Chapter 2)Database Systems - Relational Data Model (Chapter 2)
Database Systems - Relational Data Model (Chapter 2)
 
data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
 
Oracle Database Security
Oracle Database SecurityOracle Database Security
Oracle Database Security
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
1 introduction databases and database users
1 introduction databases and database users1 introduction databases and database users
1 introduction databases and database users
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1
 
Symbol of e r diagram presentation
Symbol of e r diagram presentationSymbol of e r diagram presentation
Symbol of e r diagram presentation
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
EER modeling
EER modelingEER modeling
EER modeling
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 

Andere mochten auch

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
Jafar Nesargi
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
Tech_MX
 
Data flow diagram
Data flow diagram Data flow diagram
Data flow diagram
Nidhi Sharma
 
Solaris 10-installation-guide-solaris-flash-archives2794
Solaris 10-installation-guide-solaris-flash-archives2794Solaris 10-installation-guide-solaris-flash-archives2794
Solaris 10-installation-guide-solaris-flash-archives2794
nirmal1984
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mapping
saurabhshertukde
 

Andere mochten auch (19)

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
 
Data flow diagram
Data flow diagram Data flow diagram
Data flow diagram
 
CHAPTER 2 DBMS IN EASY WAY BY MILAN PATEL
CHAPTER 2 DBMS IN EASY WAY BY  MILAN PATELCHAPTER 2 DBMS IN EASY WAY BY  MILAN PATEL
CHAPTER 2 DBMS IN EASY WAY BY MILAN PATEL
 
Install oracle11gr2 rhel5
Install oracle11gr2 rhel5Install oracle11gr2 rhel5
Install oracle11gr2 rhel5
 
Solaris 10-installation-guide-solaris-flash-archives2794
Solaris 10-installation-guide-solaris-flash-archives2794Solaris 10-installation-guide-solaris-flash-archives2794
Solaris 10-installation-guide-solaris-flash-archives2794
 
Finit Solutions - What is New in Hyperion Financial Management 11.1.2.2
Finit Solutions - What is New in Hyperion Financial Management 11.1.2.2Finit Solutions - What is New in Hyperion Financial Management 11.1.2.2
Finit Solutions - What is New in Hyperion Financial Management 11.1.2.2
 
enhanced er diagram
enhanced er diagramenhanced er diagram
enhanced er diagram
 
IT Certifications in Demand for 2012 | Best Certs to Get a Job
IT Certifications in Demand for 2012 | Best Certs to Get a JobIT Certifications in Demand for 2012 | Best Certs to Get a Job
IT Certifications in Demand for 2012 | Best Certs to Get a Job
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mapping
 
dbms
dbmsdbms
dbms
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
 
E R Model Diagram of DBMS
E R Model Diagram of DBMSE R Model Diagram of DBMS
E R Model Diagram of DBMS
 
E R Diagram
E R DiagramE R Diagram
E R Diagram
 
Tips and Tricks of Toad for Oracle 10.6
Tips and Tricks of Toad for Oracle 10.6Tips and Tricks of Toad for Oracle 10.6
Tips and Tricks of Toad for Oracle 10.6
 
Solaris vs Linux
Solaris vs LinuxSolaris vs Linux
Solaris vs Linux
 
SQL Joins
SQL JoinsSQL Joins
SQL Joins
 

Ähnlich wie 03 Ch3 Notes Revised

ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
miftah88
 
Pertemuan-4------------------------------------------------
Pertemuan-4------------------------------------------------Pertemuan-4------------------------------------------------
Pertemuan-4------------------------------------------------
keishaangelina2
 
3 data modeling using the entity-relationship (er) model
3 data modeling using the entity-relationship (er) model3 data modeling using the entity-relationship (er) model
3 data modeling using the entity-relationship (er) model
Kumar
 

Ähnlich wie 03 Ch3 Notes Revised (20)

Chapter3
Chapter3Chapter3
Chapter3
 
Chapter3
Chapter3Chapter3
Chapter3
 
02er
02er02er
02er
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
ERD with complete knowledge
ERD with complete knowledgeERD with complete knowledge
ERD with complete knowledge
 
27 fcs157al3
27 fcs157al327 fcs157al3
27 fcs157al3
 
ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
 
Unit02 dbms
Unit02 dbmsUnit02 dbms
Unit02 dbms
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptx
 
Database Chapter 3
Database Chapter 3Database Chapter 3
Database Chapter 3
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
Data Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) ModelData Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) Model
 
E R Model details.ppt
E R Model details.pptE R Model details.ppt
E R Model details.ppt
 
Unit 3 final.pptx
Unit 3 final.pptxUnit 3 final.pptx
Unit 3 final.pptx
 
ER model
ER modelER model
ER model
 
Er model
Er modelEr model
Er model
 
3. Chapter Three.pdf
3. Chapter Three.pdf3. Chapter Three.pdf
3. Chapter Three.pdf
 
Pertemuan-4------------------------------------------------
Pertemuan-4------------------------------------------------Pertemuan-4------------------------------------------------
Pertemuan-4------------------------------------------------
 
3 data modeling using the entity-relationship (er) model
3 data modeling using the entity-relationship (er) model3 data modeling using the entity-relationship (er) model
3 data modeling using the entity-relationship (er) model
 
Test presentation
Test presentationTest presentation
Test presentation
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

03 Ch3 Notes Revised

  • 1.  
  • 2. Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright © 2004 Pearson Education, Inc.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. ENTITY SET corresponding to the ENTITY TYPE CAR car 1 ((ABC 123, TEXAS), TK629, Ford Mustang, convertible, 1999, {red, black}) car 2 ((ABC 123, NEW YORK), WP9872, Nissan 300ZX, 2-door, 2002, {blue}) car 3 ((VSY 720, TEXAS), TD729, Buick LeSabre, 4-door, 2003, {white, blue}) . . . CAR Registration(RegistrationNumber, State), VehicleID, Make, Model, Year, {Color}
  • 11.
  • 12. ER DIAGRAM – Entity Types are: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT
  • 13.
  • 14. Example relationship instances of the WORKS_FOR relationship between EMPLOYEE and DEPARTMENT e 1  e 2  e 3  e 4  e 5  e 6  e 7  EMPLOYEE r 1 r 2 r 3 r 4 r 5 r 6 r 7 WORKS_FOR  d 1  d 2  d 3 DEPARTMENT
  • 15. Example relationship instances of the WORKS_ON relationship between EMPLOYEE and PROJECT e 1  e 2  e 3  e 4  e 5  e 6  e 7  r 1 r 2 r 3 r 4 r 5 r 6 r 7  p 1  p 2  p 3 r 8 r 9
  • 16.
  • 17. ER DIAGRAM – Relationship Types are: WORKS_FOR, MANAGES, WORKS_ON, CONTROLS, SUPERVISION, DEPENDENTS_OF
  • 18.
  • 19. Weak Entity Type is: DEPENDENT Identifying Relationship is: DEPENDENTS_OF
  • 20.
  • 21. Many-to-one (N:1) RELATIONSHIP e 1  e 2  e 3  e 4  e 5  e 6  e 7  EMPLOYEE r 1 r 2 r 3 r 4 r 5 r 6 r 7 WORKS_FOR  d 1  d 2  d 3 DEPARTMENT
  • 22. Many-to-many (M:N) RELATIONSHIP e 1  e 2  e 3  e 4  e 5  e 6  e 7  r 1 r 2 r 3 r 4 r 5 r 6 r 7  p 1  p 2  p 3 r 8 r 9
  • 23.
  • 24. A RECURSIVE RELATIONSHIP SUPERVISION e 1  e 2  e 3  e 4  e 5  e 6  e 7  EMPLOYEE r 1 r 2 r 3 r 4 r 5 r 6 SUPERVISION 2 1 1 2 2 1 1 1 2 1 2 2 © The Benjamin/Cummings Publishing Company, Inc. 1994, Elmasri/Navathe, Fundamentals of Database Systems, Second Edition
  • 25. Recursive Relationship Type is: SUPERVISION (participation role names are shown)
  • 26.
  • 27. Attribute of a Relationship Type is: Hours of WORKS_ON
  • 28.
  • 29.
  • 30. The (min,max) notation relationship constraints Employee Department Manages (1,1) (0,1) Employee Department Works-for (1,N) (1,1)
  • 31. COMPANY ER Schema Diagram using (min, max) notation
  • 32.
  • 33.
  • 34.
  • 35. Some of the Currently Available Automated Database Design Tools Data modeling, design and reengineering Visual Basic and Visual C++ Visio Enterprise Visio Data modeling, business logic modeling Enterprise Application Suite Sybase Conceptual modeling up to code maintenance Xcase Resolution Ltd. Mapping from O-O to relational model RW Metro Rogue Ware Modeling in UML and application generation in C++ and JAVA Rational Rose Rational Mapping from O-O to relational model Pwertier Persistence Inc. Data, process, and business component modeling Platinum Enterprice Modeling Suite: Erwin, BPWin, Paradigm Plus Platinum Technology Data modeling, object modeling, process modeling, structured analysis/design System Architect 2001 Popkin Software Database modeling, application development Developer 2000 and Designer 2000 Oracle Database administration and space and security management DB Artisan Database Modeling in ER and IDEF1X ER Studio Embarcadero Technologies FUNCTIONALITY TOOL COMPANY
  • 36. ER DIAGRAM FOR A BANK DATABASE © The Benjamin/Cummings Publishing Company, Inc. 1994, Elmasri/Navathe, Fundamentals of Database Systems, Second Edition
  • 37.
  • 38.