en ch03 figs

22
Copyright © 2004 Pearson Education, Inc.

Upload: gourab87

Post on 25-May-2015

881 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: En Ch03 Figs

Copyright © 2004 Pearson Education, Inc.

Page 2: En Ch03 Figs

Copyright © 2004 Pearson Education, Inc.

Chapter 3

Data Modeling Using the Entity-Relationship

Model

Page 3: En Ch03 Figs

Slide 3-3Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.1A simplified diagram to illustrate the main phases of database design.

Page 4: En Ch03 Figs

Slide 3-4Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.2An ER schema diagram for the COMPANY database.

Page 5: En Ch03 Figs

Slide 3-5Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.3Two entities, employee e1 and company c1, and their attributes.

Page 6: En Ch03 Figs

Slide 3-6Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.4A hierarchy of composite attributes.

Page 7: En Ch03 Figs

Slide 3-7Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.5A complex attribute: AddressPhone.

Page 8: En Ch03 Figs

Slide 3-8Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.6Two entity types, EMPLOYEE and COMPANY, and some member entities of each.

Page 9: En Ch03 Figs

Slide 3-9Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.7The CAR entity type with two key attributes, Registration and VehicleID.

Page 10: En Ch03 Figs

Slide 3-10Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.8Preliminary design of entity types for the COMPANY database.

Page 11: En Ch03 Figs

Slide 3-11Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.9Some instances in the WORKS_FOR relationship set, which represents a relationship type WORKS_FOR between EMPLOYEE and DEPARTMENT.

Page 12: En Ch03 Figs

Slide 3-12Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.10Some relationship instances in the SUPPLY ternary relationship set.

Page 13: En Ch03 Figs

Slide 3-13Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.11A recursive relationship SUPERVISION between EMPLOYEE in the supervisor role (1) and EMPLOYEE in the subordinate role (2).

Page 14: En Ch03 Figs

Slide 3-14Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.12A 1:1 relationship, MANAGES.

Page 15: En Ch03 Figs

Slide 3-15Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.13An M:N relationship, WORKS_ON.

Page 16: En Ch03 Figs

Slide 3-16Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.14Summary of the notation for ER diagrams.

Page 17: En Ch03 Figs

Slide 3-17Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.15ER diagrams for the COMPANY schema, with structural constraints specific using (min, max) notation.

Page 18: En Ch03 Figs

Slide 3-18Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.16The COMPANY conceptual scheme in UML class diagram notation.

Page 19: En Ch03 Figs

Slide 3-19Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.17An ER diagram for an AIRLINE database schema.

Page 20: En Ch03 Figs

Slide 3-20Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.18An ER diagram for a BANK database schema.

Page 21: En Ch03 Figs

Slide 3-21Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.19Part of an ER diagram for a COMPANY database.

Page 22: En Ch03 Figs

Slide 3-22Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 3.20Part of an ER diagram for a COURSES database.