Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.

Slides:



Advertisements
Similar presentations
IT420: Database Management and Organization
Advertisements

Entity-Relationship Model
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Systems Development Life Cycle
Modeling the Data: Conceptual and Logical Data Modeling
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
System Analysis - Data Modeling
Entity Relationship Diagrams Basic Elements and Rules.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter Five Data Modeling with the Entity-Relationship Model.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Entity Relationship Diagrams
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Entity-Relationship Model
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Database Design Using the REA Data Model
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Entity-Relationship modeling Transparencies
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.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Chapter 17 Database Design Using the REA Data Model Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 17-1.
Chapter 17 Database Design Using the REA Data Model Copyright © 2012 Pearson Education 17-1.
Chapter 5 Entity–Relationship Modeling
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Concepts and Terminology Introduction to Database.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Entity Relationship Diagram. Introduction Definition: Entity-relationship diagram is a data-modeling technique that visualises entities, the attributes.
In this session, you will learn to: Map an ER diagram to a table Objectives.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Entity Relationship Modeling
1 Database Systems Entity Relationship (E-R) Modeling.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Chapter 3: Modeling Data in the Organization
CHAPTER 2 - Database Requirements and ER Modeling
TMC2034 Database Concept and Design
CS 174: Server-Side Web Programming February 12 Class Meeting
Chapter 7 Structuring System Requirements: Conceptual Data Modeling
Review of Week 1 Database DBMS File systems vs. database systems
CHAPTER 2 - Database Requirements and ER Modeling
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
ER MODELING Instructor: SAMIA ARSHAD
Presentation transcript:

Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases

Copyright (c) 2014 Pearson Education, Inc. INTRODUCTION  Entity-relationship (ER) modeling - conceptual database modeling technique Enables the structuring and organizing of the requirements collection process Provides a way to graphically represent the requirements  ER diagram (ERD) - the result of ER modeling Serves as a blueprint for the database Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 2

Copyright (c) 2014 Pearson Education, Inc. ENTITIES  Entities - constructs that represent what the database keeps track of The basic building blocks of an ER diagram Represent various real world notions, such as people, places, objects, events, items, and other concepts Within one ERD each entity must have a different name Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 3

Copyright (c) 2014 Pearson Education, Inc. ENTITIES Two entities Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 4

Copyright (c) 2014 Pearson Education, Inc. ENTITIES  Entity instances (entity members) - occurrences of an entity Entities themselves are depicted in the ER diagrams while entity instances are not Entity instances are eventually recorded in the database that is created based on the ER diagram Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 5

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES  Attribute - depiction of a characteristic of an entity Represents the details that will be recorded for each entity instance Within one entity, each attribute must have a different name  Unique Attribute - attribute whose value is different for each entity instance Every regular entity must have at least one unique attribute Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 6

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES An entity with attributes Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 7

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS  Relationship - ER modeling construct depicting how entities are related Within an ER diagram, each entity must be related to at least one other entity via a relationship Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 8

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS  Cardinality constraints - depict how many instances of one entity can be associated with instances of another entity Maximum cardinality o One (represented by a straight bar: I) o Many (represented by a crow’s foot symbol) Minimum cardinality (participation) o Optional (represented by a circular symbol: 0) o Mandatory (represented by a straight bar: I) Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 9

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS A relationship between two entities Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 10

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS Four possible cardinality constraints Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 11

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS Several possible versions of the relationship ReportsTo Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 12

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS  Types of Relationships (maximum cardinality-wise) One-to-one relationship (1:1) One-to-many relationship (1:M) Many-to-many relationship (M:N) Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 13

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS Three types of relationships (maximum cardinality-wise) Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 14

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS A 1:M Relationship Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 15 A M:N Relationship A 1:1 Relationship

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS  Relationship instances - occurrences of a relationship Occur when an instance of one entity is related to an instance of another entity via a relationship Relationship themselves are depicted in the ER diagrams while relationship instances are not Relationship instances are eventually recorded in the database that is created based on the ER diagram Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 16

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS A relationship and its instances Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 17

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS  Relationship attributes In some cases M:N relationships can actually have attributes of their own Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 18

Copyright (c) 2014 Pearson Education, Inc. TERNARY RELATIONSHIP Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 19

Copyright (c) 2014 Pearson Education, Inc. RELATIONSHIPS Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 20 Relationship attributes Example

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES  Composite attribute – attribute that is composed of several attributes Not an additional attribute of an entity Its purpose is to indicate a situation in which a collection of attributes has an additional meaning, besides the individual meanings of each attribute Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 21

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES An entity with a composite attribute Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 22

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES  Composite unique attribute – attribute that is composed of several attributes and whose value is different for each entity instance Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 23

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES An entity with a unique composite attribute Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 24

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES  Multiple unique attributes (candidate keys) - when an entity has more than one unique attribute each unique attribute is also called a candidate key Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 25

Copyright (c) 2014 Pearson Education, Inc. ATTRIBUTES An entity with multiple unique attributes (candidate keys) Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 26

Copyright (c) 2014 Pearson Education, Inc.  Task from E-book:  What is a weak entity? Provide an example. Jukić, Vrbsky, Nestorov – Database Systems Chapter 2 – Slide 27