ER Modeling An E-R model is a conceptual (or logical) data model that includes –Entity (classes) –Attributes of each entity –Relationship types between.

Slides:



Advertisements
Similar presentations
Chapter # 4 BIS Database Systems
Advertisements

More Diagramming & Practice with Relationship Modeling
Entity-Relationship (ER) Modeling
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Entity Relationship (ER) Modeling
ENTITY RELATIONSHIP MODELLING
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Fundamentals/ICY: Databases 2013/14 Week 6: Monday John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Section 07 (a)DFD to ERD Link1 HSQ - DATABASES & SQL By MANSHA NAWAZ 07 (a) - DFD to ERD Link And Franchise Colleges.
IT420: Database Management and Organization
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Chapter 6 Methodology Logical Database Design for the Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Entity Relationship Diagrams Basic Elements and Rules.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
--The Entity Relationship Model(1)--1 The Entity Relationship Model.
CIT 381 More ER Modeling - review one-to-many - one-to-one - recursive relationships.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
Representing Information with Data Models What is a data model and data modeling? What are Entities and Attributes? Relationships between entities Modeling.
Copyright © 2003 Addison-Wesley Your name here. Copyright © 2003 Addison-Wesley Data Modeling with ER Diagrams What is an Entity-Relationship Model? How.
Chapter Five Data Modeling with the Entity-Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
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 Five Data Modeling with the Entity-Relationship Model.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Things are bad. Children no longer obey their parents and everyone is writing a book. -- Marcus Tillius Cicero.
Class Agenda – 04/04/2006 Discuss database modeling issues
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
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.
Computing & Information Sciences Kansas State University Wednesday, 01 Oct 2008CIS 560: Database System Concepts Lecture 15 of 42 Wednesday, 01 October.
Entity Relationship Modelling. What is Entity Relationship Modelling? The Entity-Relationship model is – ” “ a data model for high-level descriptions.
Data Modeling with ER Diagrams What is an Entity-Relationship Model? How is an E-R model represented as an E-R diagram? How can a video store be modeled.
IS 325 Notes for Wednesday September 18, 2013.
Business Process Modeling
Copyright © 2003 Addison-Wesley Jesper Rosholm Tørresø.
Relational DB Components
Conceptual Design Lecture - 2 Database Development.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
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 
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:
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Entity Relationship Diagram. Introduction Definition: Entity-relationship diagram is a data-modeling technique that visualises entities, the attributes.
Chapter 3 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
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.
advanced data modeling
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module 8: Entity-Relationship.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Data Modeling Using the Entity- Relationship (ER) Model
Chapter 6 Structuring System Requirements: Conceptual Data Modeling
Entity-Relationship Model
Database Design – Lecture 4
Chapter 7: Entity-Relationship Model
IDEF1X Standard IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993 It defines entities, relationships, and attributes.
Module 8 – Database Design Using the E-R Model
Database Modeling using Entity Relationship Model (E-R Model)
Database Processing: David M. Kroenke’s Chapter Five:
Entity Relationship (ER) Modeling
Chapter 6b: Database Design Using the E-R Model
Presentation transcript:

ER Modeling An E-R model is a conceptual (or logical) data model that includes –Entity (classes) –Attributes of each entity –Relationship types between entities –Constraints Types of attributes Designation of key attributes Cardinalities of relationship types An E-R Model is typically represented graphically –E-R diagram (many variants) –UML diagram

ER Notation ER notation originally from Chen –Many variations –Very abstract –Good for conceptual models –No connection to type of database All good stuff, but we’re not going to introduce the Chen notation in this class to because we will model in IDEF1X (to be covered in depth later).

Some IDEF1X notation Introduce some IDEF1X notation so we can draw some models. Still no connection to any specific type of database. Entities are boxes Attributes are listed in boxes, Keys at top Relationships are lines between entities Parent-to-Child relationships line with dot

Example 1 Draw an ER diagram for current rentals (videos and movies and customers)

Weak Entities A weak entity is –An entity with no key of its own –An entity whose instances cannot exist without being related to other entities An identifying relationship type is –A relationship type that determines the keys of the weak entities Weak entities in IDEF1X have rounded corners. Identifying relationships are solid lines, non- identifying are dotted lines

Previous Rentals Now let’s draw the ER diagram for Previous Rentals Videos can be previously rented many times, including by the same customer. What kind of key does it have?

Combined Rentals Why not just combine Current and Previous Rentals into one entity? DateDue and DateReturned can be a shared attribute

Surrogate Keys If in doubt about whether an entity is weak or not, why not just add an attribute (a number) that uniquely identifes each instance? MS Access will do this for us automatically – autonumber There are arguments for and against the use of surrogate keys, but the bottom line is you need to understand the problem with the model. If you just assume that a surrogate key will get added to each entity, then you probably won’t have an accurate model and it won’t help you understand the business needs.

Business Rules Business Rules define how a business operates. For instance, we may have a business rule that says a customer can only rent one video of a movie per day. Another example might be that R rated movies can only be rented by Customers over 18 Or each video is assigned a unique id as soon as it comes in from supplier.