Entity Relationship Modelling. What is Entity Relationship Modelling? The Entity-Relationship model is – ” “ a data model for high-level descriptions.

Slides:



Advertisements
Similar presentations
Information System Analysis Lab 7. ERD entity-relationship diagram is a data modeling technique that creates a graphical representation of the entities,
Advertisements

1 Database Theoretic Basis Entity Relationship (E-R) Modeling Database Theoretic Basis Entity Relationship (E-R) Modeling.
Entity Relationship (ER) Modeling
Chapter 31 Chapter 3 Data Modeling Using the Entity-Relationship Model.
The Entity-Relationship Model Jianlin Feng School of Software SUN YAT-SEN UNIVERSITY courtesy of Joe Hellerstein for some slides.
ENTITY RELATIONSHIP MODELLING
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Systems Development Life Cycle
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
--The Entity Relationship Model(1)--1 The Entity Relationship Model.
Lecture 2: Entity/Relationship modelling
Database Systems: Design, Implementation, and Management Tenth Edition
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
APPENDIX C DESIGNING DATABASES
ER Diagram Notation. E-R Diagram: Chen Model Entity – represented by a rectangle with its name in capital letters. Relationships – represented by an active.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Yong Choi School of Business CSUB
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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.
1 Desing Database Systems. 2 Hierarchy database The structure of data is like a tree Parent-children relationship Pointers Central depot West depotEast.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Entity-Relationship Data Model N. Harika Lecturer(csc)
1 Relational Database Development Alison Taylder Consultant ITC-ILO, Turin 25 th November 2004.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
Database Design Principles – Lecture 3
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
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.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Continued)
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
Description and exemplification of entity-relationship modelling.
 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.
Database Design – Lecture 4 Conceptual Data Modeling.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
advanced data modeling
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
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 Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Done By : Gillian Swaby. Objectives: 1. What is an Entity-Relationship Diagram? 2.What are the symbols used in ERD? Explain each. 3. What is a one- to-
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
E.R Diagrams Tiffany Shaw 6AQ
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Moya messam.  Definition: An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a.
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 Model
Entity Relationship Diagram
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity-Relationship Model
Database Design – Lecture 4
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Diagram (ERD)
E.R. Examples.
Entity Relation Model Tingting Zhang.
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Entity Relationship Modelling

What is Entity Relationship Modelling? The Entity-Relationship model is – ” “ a data model for high-level descriptions of conceptual data models, and it provides a graphical notation for representing such data models in the form of entity- relationship diagrams.” [Wikipedia Website]

What does this mean? Basically a entity-relationship model is – A simple way to representing on paper, an idea for a data model e.g. a database. A simple way to representing on paper, an idea for a data model e.g. a database. With special graphical systems and symbols. With special graphical systems and symbols.

Key Terms Entity Entity Relationship Relationship Attribute Attribute Primary Key Primary Key

What is an Entity? An entity represents a discrete object. An entity represents a discrete object. Entities are generally nouns. Entities are generally nouns. Examples include – a computer, an employee, a song. a computer, an employee, a song.

Relationships A relationship captures how two or more entities are related to one another. A relationship captures how two or more entities are related to one another. Relationships can be thought of (roughly) as verbs. Relationships can be thought of (roughly) as verbs. Examples include – an owns relation between a company and a computer. an owns relation between a company and a computer. a supervises relation between an employee and a department a supervises relation between an employee and a department a performs relation between an artist and a song a performs relation between an artist and a song

Attributes Entities and relationships can both have attributes. Examples – an employee entity might have a national insurance number attribute.. the proved relation may have a date attribute.

Primary Keys A primary key is an attribute which can uniquely identify an Entity. A primary key is an attribute which can uniquely identify an Entity. Example – A National Insurance number, as each person has a different number to everyone else.

Entity Relationship Diagrams (ERDs) Important - Entity-relationship diagrams don't show single entities or single instances of relations. Entity-relationship diagrams don't show single entities or single instances of relations. they show entity sets and relationship sets. they show entity sets and relationship sets. Example – a particular song is an entity. a particular song is an entity. The collection of all songs in a database is an entity set. The collection of all songs in a database is an entity set.

Common Notation There are many systems of notation for ERDs. These are the common symbols used - Entity Sets - drawn as rectangles. Entity Sets - drawn as rectangles. Relationships - drawn as diamonds. Relationships - drawn as diamonds. Attributes - drawn as ovals connected to their owning entity sets by a line. Attributes - drawn as ovals connected to their owning entity sets by a line.

Less Common Notion Weak Entities Cannot be identified by their attributes alone Cannot be identified by their attributes alone Therefore must use as its primary key its own attributes and the primary key of an entity it is related to. Therefore must use as its primary key its own attributes and the primary key of an entity it is related to.

Example Models Simple Model –

Example Models (Cont.) More advanced model –

Further Reading Wikipedia Website – Wikipedia Website – Peter Pin-Shan Chen - “The Entity-Relationship Model-Toward a Unified View of Data”