Entity Relationship Diagram

Slides:



Advertisements
Similar presentations
Chapter 2.1 V3.1 Napier University Dr Gordon Russell
Advertisements

Entity Relationship (ER) Modeling
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
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
Databases Revision.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Example BigHit Video Inc. wants to create an information system for online sales of movies in both DVD and videotape format. People will be allowed to.
Chapter 4 Entity Relationship (E-R) Modeling
APPENDIX C DESIGNING DATABASES
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data Modeling ERM ERD.
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.
Chapter 5 Entity–Relationship Modeling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Databases Illuminated Chapter 3 The Entity Relationship Model.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Entity Relationship (E-R) Model
Data Modeling Using the Entity- Relationship (ER) Model
Comp 1100 Entity-Relationship (ER) Model
Entity-Relationship Model
ER model Ashima Wadhwa.
Entity-Relationship Model
TMC2034 Database Concept and Design
Entity Relationship Model
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
DESIGNING DATABASE APPLICATIONS
Entity-Relationship Model
Tables and Their Characteristics
Database Design – Lecture 4
Outline of the ER Model By S.Saha
ER MODEL Lecture 3.
CS 174: Server-Side Web Programming February 12 Class Meeting
Overview of Entity‐Relationship Model
Entity Relationship Diagrams
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relation Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Entity Relationship Model
Database Modeling using Entity Relationship Model (E-R Model)
Chapter 1: The Database Environment
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
Entity Relation Model Tingting Zhang.
ER MODELING Instructor: SAMIA ARSHAD
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Relationships—Topics
Presentation transcript:

Entity Relationship Diagram Lecture@lpu

ER Diagram Usage Able to describe just about any system, ER diagrams are most often associated with complex databases that are used in software engineering and IT networks. ER diagrams are frequently used during the design stage of a development process in order to identify different system elements and their relationships with each other.

History for EDR ER diagrams are visual tools that are used in the Entity-Relationship model initially proposed by Peter Chen in 1976 Entities are data objects that maintain different relationships with each other. Additionally, entities are also described further using attributes.

Symbols for ERD There are three basic elements in an ER Diagram: entity, attribute, relationship. There are more elements which are based on the main elements, are weak entity, multivalued attribute, derived attribute, weak relationship and recursive relationship.

Entity Entity : An entity can be a person, place, event, or object that is relevant to a given system. For example, a school system may include students, teachers, major courses, subjects, fees, and other items. Entities are represented in ER diagrams by a rectangle and named using singular nouns. Weak Entity : A weak entity is an entity that depends on the existence of another entity.

Attribute Attribute: An attribute is a property, trait, or characteristic of an entity, relationship, or another attribute. For example, the attribute Inventory Item Name is an attribute of the entity Inventory Item. An entity can have as many attributes as necessary. Meanwhile, attributes can also have their own specific attributes.

Multivalued Attribute Multivalued Attribute : If an attribute can have more than one value it is called an multivalued attribute. It is important to note that this is different to an attribute having its own attributes. For example a teacher entity can have multiple subject values. Derived Attribute : An attribute based on another attribute. This is found rarely in ER diagrams. For example for a circle the area can be derived from the radius.

Relationship Relationship : A relationship describes how entities interact. For example, the entity “carpenter” may be related to the entity “table” by the relationship “builds” or “makes”. Relationships are represented by diamond shapes and are labeled using verbs. Recursive Relationship : If the same entity participates more than once in a relationship it is known as a recursive relationship. An employee can be a supervisor and be supervised, so there is a recursive relationship.

Entity-Relationship Modeling E-R data model is a high level conceptual model that describes data as entities, attributes, and relationships. The data modeling process is iterative: You start putting some ideas together, then the process reveals some problems in your thinking.  So, you go back and rework your ideas.

Entity-Relationship Diagrams E-R diagrams enable designers and users to express their understanding of what the planned database is intended to do and how it might work, and to communicate about the database through a common language.

Examples of E-R Diagram Symbols

Entity Classes and Attributes Entity Class are represented by rectangles Attributes are represented by ovals Key attribute is represented by an underline Multivalued attributes is represented with an oval with a double border Derived attribute is represented with an oval dashed border -- Example the AGE from current - birth Composite attribute is represented with an oval that connects to additional ovals

Ex1:E-R Diagram for Entity Class Customer

Relationship Types and Constraints A relationship type is represented by a diamond and two connecting lines. The name of the relationship is shown inside the diamond.  Reading the diagram from left to right to yields "a store owns a video"..

E-R Diagram for the Owns Relationship Type Now we add cardinality constraints.  The relationship type is one-to-many.  That is, a store may own many videos and a video may be own by no more than one store.

Modeling Rentals as a Relationship Type A relationship between the customer and the video is created when the customer rents the video.  The relationship is removed when the customer returns the video.

Many-to-Many

Ex:

Ex