Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.

Slides:



Advertisements
Similar presentations
Entity Relationship (E-R) Modeling Hachim Haddouti
Advertisements

Management Information Systems, Sixth Edition
Entity Relationship (ER) Modeling
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Systems Development Life Cycle
Data Modeling using the Entity-Relationship (ER) Model
Concepts of Database Management Sixth Edition
Entity Relationship (E-R) Modeling
Concepts of Database Management Sixth Edition
1 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology.
Concepts of Database Management Seventh Edition
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Entity Relationship (E-R) Modeling
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
APPENDIX C DESIGNING DATABASES
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Concepts of Database Management Seventh Edition
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Conceptual Data Modeling, Entity Relationship Diagrams
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
1 A Guide to MySQL 2 Database Design Fundamentals.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
1 A Guide to MySQL 2 Database Design Fundamentals.
Concepts of Database Management Eighth Edition Chapter 6 Database Design 2: Design Method.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Data Modeling Using the Entity-Relationship (ER) Model.
Chapter 7 Data Modeling with Entity Relationship Diagrams
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Concepts of Database Management Seventh Edition Chapter 6 Database Design 2: Design Method.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Entity Relationship Modeling
Data Modeling Using the ERD
A Guide to SQL, Eighth Edition
Tables and Their Characteristics
Concepts of Database Management Seventh Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model

Objectives Discuss the general process and goals of database design Identify the different symbols used in ERD Identify cardinality symbols to used for different entity relationship types Create an entity-relationship (E-R) diagram to visually represent a database design 2

Objectives (continued) Explain the physical-level design process Discuss top-down and bottom-up approaches to database design and examine the advantages and disadvantages of both methods Use a survey form to obtain information from users prior to beginning the database design process Review existing documents to obtain information prior to beginning the database design 3

The Entity-Relationship Model is modeling tool used to depict graphically a database design before it is actually implemented. It has three basic components, namely, an Entity, Relationship and an Attribute. And Relationship has Cardinality (as we will see more in a moment) 4

Introduction Two-step process for database design Information-level design: completed independently of any particular DBMS Physical-level design: information-level design adapted for the specific DBMS that will be used –Must consider characteristics of the particular DBMS 5

Building Blocks of ERD 6 TypeEnglish Grammar EquivalentExample EntityProper NounStudent, Employee, Instructor, Courses, Room RelationshipVerbhas, teaches, belongs, handles AttributeAdjectiveHeight, Age, Gender, Nationality, First name

ERD Popular Notation Chen Notation Crow’s Foot Notation 7

Chen Notation - Symbol 8 1M Rectangle represents an Entity Diamond represents a Relationship Lines with labels represents Cardinality

Entity (Chen Notation) is a real-world object distinguishable or unique from other objects. An entity can be a concrete or physical object like employee, student, faculty, customer etc. Or it could also be conceptual or abstract like transaction, order, course, subjects etc. It can be thought of as a noun like student, employee etc. It is normally represented by a rectangle shape. 9

Database Background Remember in Chapter 1 Entity could be a : 10 Person Place (ex. Teacher, Student, Physician) (ex. School, Hotel, Store ) Object (ex. Mouse, Books, Bulding ) Event (ex. Enroll, Withdraw, Order ) Idea or Concept (ex. Courses, Account, Delivery )

Entity - Example For example in our Premiere Database the different Entities are the following: 11 CustomerSales Rep Order Parts

Relationship is a way of relating one entity to another. Entities can therefore participate in a relationship. it is commonly thought as a verb connecting the entities or nouns. It is normally represented by a diamond shape. 12

Relationship - Example For example in our Premiere Database again we have this relationships among entities: 13 represents Customer Sales Rep Order has Could be read as : A Sales Rep Represents a Customer. And a Customer has an Order.

Cardinality Cardinality: number of items that must be included in a relationship –An entity in a relationship with minimum cardinality of zero plays an optional role in the relationship –An entity with a minimum cardinality of one plays a mandatory role in the relationship 14

Cardinality - Symbols 15 One-is-to-many Relationship 1M MN Many-to-many Relationship

Cardinality Symbols - Example 16 represents Customer Sales Rep Could be read as : A Sales Rep could represent 1 or Many Customers. 1M

Cardinality Symbols – Example (Cont’d) 17 has Parts Order Could be read as : An Order could have many Parts (e.g. Products Ordered) and a Part could have many Orders. MN

Degree of Relationship There are three Degree of Relationships in ERD notation, namely: –Unary –Binary –Ternary 18

Degree of Relationship (Cont’d) 19 Unary Binary Ternary

Degree of Relationship (Cont’d) 20 Employee Unary CustomerOrders Binary Vendor Warehouse Part Ternary Manages makes supplies

Attribute Refers to the characteristic or basic fact or field of an Entity or Relationship. For example a Student entity could have the following attributes ID Number, Last Name, First Name, Address, Birth Date etc. A relationship could also have an attribute for example an Entity name Student enrolls (relationship) to a Course/Program. Now, when you enroll you enroll on a certain date so you will have an attribute of Enrollment Date under Enroll relationship. It is normally represented by an oval. 21

Attribute - Example 22 RepNum Sales Rep Lastname Firstname Street City State Zip Commission Rate Take note that a Primary Key is underlined.

Attribute – More Example 23 RepNum Sales Rep Lastname Firstname Street City State Zip Commission Rate Customer represents CustomerNum CustomerName CreditLimit Balance Street City State Zip 1M

Crow’s Foot notation - Symbol 24 Entity name Attribute 1 Attribute 2 Attribute 3 Attribute 4

Crow’s Foot notation - Example 25 Student StudentID Firstname Lastname Gender Program Entity Attributes

Crow’s Foot notation - Keys 26 Student StudentID (PK) Firstname Lastname Gender ProgramID (FK) PK – Primary Key FK – Foreign Key

Crow’s Foot Cardinality - Symbols 27 One and only one included in the relationship Zero or many could be included in the relationship. This is optional mode. One or many could be included in the relationship. This is mandatory mode.

Crow’s Foot notation – with Cardinality 28 Rep Repnum (PK) Firstname Lastname Commission Rate Customer Customernum(PK) Customername Street City State Zip Balance CreditLimit Repnum (FK)

Non-Graded Seatwork 29 Using Premier Database –Create a Chen notation on at least two tables that is not part of our example and tables that has relationship –Create a Crow’s Foot notation on at least two tables that is not part of our example and tables that has relationship

Graded Seatwork 30 Create both Chen and Crow’s foot notation on all tables and relationship –Alexamara Marina –Henry Books

End 31