Entity – Relationship Model

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
Copyright © 2004 Pearson Education, Inc.. Chapter 3 Data Modeling Using the Entity-Relationship Model.
SLIDE 1IS Fall 2002 Database Management: Discussion Session University of California, Berkeley School of Information Management and.
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity-Relationship Model
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Converting ER model Into Relational Table
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
Entity – Relationship Model (E-R Model)
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
09/03/2009Lipyeow Lim -- University of Hawaii at Manoa 1 ICS 321 Fall 2009 Introduction to Database Design Asst. Prof. Lipyeow Lim Information & Computer.
Logical Design database design. Dr. Mohamed Osman Hegaz2 Conceptual Database Designing –Provides concepts that are close to the way many users perceive.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modelling Using Entity-Relationship (ER) Model
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
CS34311 The Entity- Relationship Model Part I.. CS34312 Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Lecture # 17 July 28,2012 Data Modeling using the Entity Relationship.
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
Data Modeling Using the ERD
Data Modeling Using the Entity- Relationship (ER) Model
Entity- Relationship (ER) Model
ER model Ashima Wadhwa.
Conceptual Design & ERD Modelling
Entity-Relationship Model
Chapter 4: Part B Logical Database Design and the Relational Model
Entity-Relationship Model
Chapter -3- Data Modeling Using the Entity-Relationship Model
TYPES OF RELATIONSHIPS
Entity-Relationship Modelling
Relational Database Design by ER-to-Relational Mapping
Outline of the ER Model By S.Saha
ER MODEL Lecture 3.
بسم الله الرحمن الرحيم.
Conceptual data modeling
The Entity-Relationship Model
Entity Relationship Diagrams
Entity-Relationship Modeling
الفصل الخامس قواعد البيانات Databases
Entity-Relationship Model
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Modelling
Entity Relationship Model
Initial Design of Entity Types: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT Gender.
Functional Dependencies
Database Modeling using Entity Relationship Model (E-R Model)
Faloutsos - Pavlo C. Faloutsos - A. Pavlo Lecture#2: E-R diagrams
376a. Database Design Dept. of Computer Science Vassar College
Conceptual Data Modeling Using Entities & Relationships
Functional Dependencies
Chapter 4 Entity Relationship (ER) Modeling
Database Management System
Entity Relation Model Tingting Zhang.
CS4222 Principles of Database System
Relational Database Design by ER-to-Relational Mapping
Presentation transcript:

Entity – Relationship Model

Database Design Requirement Analysis Conceptual Design Logical Design Schema Refinement Physical Design Security Design

ER Model Data can be described as Entities Relationships attributes

Types of attributes Single attribute Composite attribute Single – valued attribute Multi – valued attribute Stored attribute Derived attribute Complex attribute

Complex Attribute Example - AddressPhone {AddressPhone( {Phone(AreaCode,PhoneNumber)},Address (StreetAddress(Number,Street,ApartmentNumber),City,State,Zip) ) }

Entity Set Collection of all entities of the same type. customer

Relationship Set

Notations in ER Model

E-R Diagram Example

E-R Diagram Example

E-R Diagram Example

Degree of a Relationship Degree- number of participating entity types. Degree = 1 – unary Degree = 2 – binary Degree = 3 – ternary Degree = n – n-ary

Example - Unary

Example - Binary

Example - Ternary

Rolename Identifies the exact role in which the entity participates in the relationship.

Recursive Relationship

Mapping Cardinalities One to one One to many

Mapping Cardinalities Many to one Many to many

ADDITIONAL FEATURES OF THE ER MODEL Key Constraints

Participation Constraints Total Partial

Weak Entities

Class Hierarchies Specialization Generalization

Aggregation

Case Study – Internet Shop Requirement Analysis I would like my customers to be able to browse my catalog of books and place orders over the Internet. Currently, I take orders over the phone. I have mostly corporate customers who call me and give me the ISBN number of a book and a quantity; they often pay by credit card.

Case Study – Internet Shop I then prepare a shipment that contains the books they ordered. If I don't have enough copies in stock, I order additional copies and delay the shipment until the new copies arrive; I want to ship a customer's entire order together. My catalog includes all the books I sell.

Case Study – Internet Shop For each book, the catalog contains its ISBN number, title, author, purcha.se price, sales price, and the year the book was published. Most of my customers are regulars, and I have records with their names and addresses.

Case Study – Internet Shop Conceptual Design

ER Model for the company database