Entity Relationship Diagrams

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Chapter 6: Entity-Relationship Model (part I)
Entity-Relationship (ER) Modeling
Chapter 3: The Enhanced E-R Model
Basic notation for supertype/subtype relationships
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: The Enhanced E-R Model Modern Database Management 10 th Edition Jeffrey A. Hoffer,
Chapter 3  Define terms  Understand use of supertype/subtype relationships  Understand use of specialization and generalization techniques  Specify.
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Data Modeling and Relational Database Design ISYS 650.
System Analysis - Data Modeling
Associative Entities A relationship cannot have attributes
Data Modeling Advanced Concepts.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Chapter 4 Entity Relationship (E-R) Modeling
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
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,
 Keys are special fields that serve two main purposes: ◦ Primary keys are unique identifiers of the relation in question. Examples include employee numbers,
Data Modeling Using the Entity-Relationship Model
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Chapter 5 1 © Prentice Hall, 2002 Chapter 5: Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes: E-R attributes.
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Entities and Attributes
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
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.
Database Design 3: Advanced Data Modeling Concepts CS 320.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Chapter 3: The Enhanced E-R Model
Entity Relationship Modeling
Entity-Relationship Model Chapter 3 II COSC 457 Sungchul Hong.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
1 The Entity- Relationship Model Instructor: Mohamed Eltabakh
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
CIS 210 Systems Analysis and Development Week 6 Part I Structuring Systems Data Requirements,
Data Modeling Using the Entity-Relationship (ER) Data Model.
Chapter 3: Data Modeling Using the Entity-Relationship (ER) Data Model
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Levels of Database Modeling High degree of abstraction Conceptual model User view 1 User view 2 Implementa- tion model Physical model Medium degree of.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 3: THE ENHANCED.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
1 Database Design Entity-Relationship Modeling N. Ilayaraja PSG Tech.
Data Modeling Using the ERD
Chapter 3 Data Modeling Using the Entity-Relationship Model
LECTURE 4: Chapter 4: The Enhanced E-R Model
Advanced Database Analysis
ER model Ashima Wadhwa.
Entity-Relationship Model
Chapter 4: Part B Logical Database Design and the Relational Model
Entity-Relationship Model
ER example : movie & category
Lecture3: Data Modeling Using the Entity-Relationship Model.
بسم الله الرحمن الرحيم.
Entity Relationship Diagrams
The Entity-Relationship Model
Database Management System 1 (ITED123A)
Chapter 3: The Enhanced E-R Model
CHAPTER 3: THE ENHANCED E-R MODEL
The Entity-Relationship Model
Database Systems: Design, Implementation, and Management Tenth Edition
Entity – Relationship Model
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Database Modeling using Entity Relationship Model (E-R Model)
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Entity-Relationship Diagram (ERD)
Database Management System
Presentation transcript:

Entity Relationship Diagrams Used for conceptual data modeling - part of database design Represents: the data that is important the structure of the data the relationships between different pieces of data Does NOT show process, roles, users, etc.

Basic Elements Entities people, places, things entity type is a set of things all of which have the same data properties entity instance is one concrete example of the entity type things that the system keeps track of, NOT things that are part of the system

Basic Elements (cont.) Relationships Attributes show how instances of one entity are related to instances of another entity have cardinality and degree Attributes single pieces of data that describe an instance of an entity like data elements

Basic ER Diagram SSN street name city CUSTOMER owner type Has account number ACCOUNT balance Basic ER Diagram

Composite Attribute Last Maiden Middle Title First Suffix Name CUSTOMER Composite Attribute

Multivalued Attribute Last Maiden Middle Title First Suffix Name Deductions EMPLOYEE Multivalued Attribute

Relationship with an Attribute Effective Date Fills POSITION EMPLOYEE Relationship with an Attribute

Effective Date Employment History POSITION EMPLOYEE Associative Entity

child parent person parent Unary Relationship

Ternary Relationship type training Talent name Performer Performs address Show dates location Ternary Relationship

Three Binary Relationships type training Talent name Has Used in Performer address Show dates Performs in location Three Binary Relationships

Cardinality Constraints Effective Date EMPLOYEE Fills POSITION Cardinality Constraints

A supertype and subtypes account# balance account U U savings account checking account interest rate max overdraft A supertype and subtypes

model number model number model number make price make price make price fits uses LENS CAMERA FLASH film type requires requires quantity quantity BATTERY size type

U U U model number price PHOTO EQUIPMENT make fits uses LENS CAMERA FLASH film type requires requires quantity quantity BATTERY size type

DateEnrolled DateEnrolled SSN SSN Degree STUDENT Graduation Date GRADUATE Grade TRANSCRIPT TRANSCRIPT Grade Date Date COURSE

U U Generalization DateEnrolled SSN Grade TRANSCRIPT STUDENT Date COURSE U U Degree Graduation Date FORMER CURRENT Generalization

Part of a grocery store database SUPPLIER Wastage SuppliedBy Has Ingredients ITEM Quantity Part of a grocery store database

U U U Specialization Quantity Has Ingredients ITEM BAKERY ITEM SUPPLIED ITEM SuppliedBy PERISHABLE ITEM SUPPLIER Specialization Wastage

Part of a Zoo database DOB DOB LivesIn PRIMATE HABITAT BIRD Origin Food LivesIn Origin LivesIn Food LivesIn 4-LEGGED ANIMAL REPTILE Origin Food DOB DOB Origin Food Part of a Zoo database

U U U U Specialization Origin Food DOB HABITAT LivesIn ANIMAL PRIMATE BIRD 4-LEGGED ANIMAL REPTILE Specialization

Replacing a set of subtypes with an attribute Origin Food DOB HABITAT LivesIn ANIMAL Class Replacing a set of subtypes with an attribute

Disjoint specialization model number price PHOTO EQUIPMENT make type = type d “lens” “flash” U “camera” U U fits uses LENS CAMERA FLASH film type requires requires Disjoint specialization with discriminator quantity quantity BATTERY size type

Total, disjoint specialization MOTHER Has OFFSPRING d U U BAD CHILDREN GOOD CHILDREN Total, disjoint specialization

Total, disjoint specialization with discriminator MOTHER Has SentCard OFFSPRING SentCard = d “Yes” “No” U U BAD CHILDREN GOOD CHILDREN Total, disjoint specialization with discriminator

Overlapping specialization with discriminator DateEnrolled SSN Grade TRANSCRIPT STUDENT Status Date Enrolled? Status: Graduated? COURSE o Enrolled=“Y” Graduated=“Y” U U Degree Graduation Date FORMER CURRENT Overlapping specialization with discriminator