1 Data Modeling : ER Model Lecture 05. 2 Why We Model  We build models of complex systems because we cannot comprehend any such system in its entirety.

Slides:



Advertisements
Similar presentations
Entity Relationship (E-R) Modeling Hachim Haddouti
Advertisements

Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Text-Book Chapters (7 and 8) Entity-Relationship Model
Data Modeling using the Entity-Relationship (ER) Model
Entity Relationship (E-R) Modeling
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
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.
Lecture Eleven Entity-Relationship Modelling
Modeling Data The Entity Relationship Model (ER) For Database Design.
1–1 The E-R Model Prof. Sin-Min Lee Department of Computer Science.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Entity Relationship Diagrams
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Chapter 8 Structuring System Data Requirements
Chapter 4 Entity Relationship (E-R) Modeling
Modern Systems Analysis and Design Third Edition
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
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,
Entity-Relationship modeling Transparencies
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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.
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.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
9/10/2012ISC 329 Isabelle Bichindaritz1 Entity Relationship (E-R) Modeling.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
UNIT 2.
CS 4310: Software Engineering Lecture 4 System Modeling The Analysis Stage.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
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,
Entity – Relationship Model (E-R Model)
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.
1 Data Modeling : ER Model…. Lecture Summary so for …. ER Model Entity, Attribute, Key Relationships Instance Diagram.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
Databases Illuminated Chapter 3 The Entity Relationship Model.
1 The Entity- Relationship Model Instructor: Mohamed Eltabakh
Entity-Relation Model. E-R Model The Entity-Relationship (ER) model was originally proposed by Peter in 1976 ER model is a conceptual data model that.
1 Database Systems Entity Relationship (E-R) Modeling.
Dr. Chaitali Basu Mukherji
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
Entity-Relationship Model
Software Engineering Lecture 4 System Modeling The Analysis Stage.
Chapter # 3 Data Modeling Using the Entity-Relationship (ER) Model
Entity Relationship Model
Chapter 7: Entity-Relationship Model
Outline of the ER Model By S.Saha
Entity-Relationship Modeling
The Entity-Relationship Model
Entity Relationship Diagrams
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 7: Entity-Relationship Model
Entity-Relationship Diagram (ERD)
ER MODELING Instructor: SAMIA ARSHAD
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Presentation transcript:

1 Data Modeling : ER Model Lecture 05

2 Why We Model  We build models of complex systems because we cannot comprehend any such system in its entirety  Need to develop a common understanding of the problem and the solution  Cannot afford a trial-and-error approach  to communicate the desired structure and behavior of our systems

3 Why We Model… to visualize and control system’s architecture to understand the system we are building, often exposing opportunities for simplification and reuse to manage risk

4 How We Model  The choice of which model we use has a profound influence on how a problem is attacked and how a solution is shaped  No single model is sufficient; every complex system is best approached through a set of independent models Every model may be expressed at different levels of fidelity  The best models are connected to reality

5 OUTLINE Data model Concepts of entity and relationships E-R diagramming Keys Weak entities Extended E-R model

6 DATA MODEL for representation of a part of a real world it is an abstraction of the reality : ignores unnecessary details represents operational data about real world events, entities, activities, etc. model may be at various levels depending of requirements : logical or physical external, conceptual, internal

7 Data Model…… a good model is easy to understand has a few concepts permits top-down specifications model offers concepts, constructs and operations must capture meaning of data (data semantics) which help us in interpreting and manipulating data

8 Data Model…… semantics captured through data types, inter-relationships and data integrity constraints uniqueness existence dependence restrictions on some operations such as insertions, deletions

9 ENTITY-RELATIONSHIP (ER) MODEL for representation of real-world represents overall logical structure of information grouping of data elements inter-relationships between groups

10 ER MODEL…. a few concepts simple and easy-to-use permits top-down approach for controlling details useful as a tool for communication between designer and user during requirements analysis and conceptual design

11 ENTITY an object that exists distinguishable from other objects could be concrete or abstract Examples : this course on software engineering, Ali as a student.

12 ENTITY SET a set of similar entities need not be disjoint with other entity sets e.g., supplier and customer may have common entities Example : set of all books in a library set of all customers entity set also called entity type or entity class entity considered as an occurrence of entity type

13 ENTITY SET…… we often use the words ‘entity’ to mean ‘entity-set’ entity sets are named using singular common nouns : Book Student Course

14 ATTRIBUTE an entity has a set of attributes attribute defines property of an entity it is given a name attribute has value for each entity value may change over time same set of attributes are defined for entities in an entity set

15 ATTRIBUTE…. Example : entity set BOOK has the following attributes TITLEISBN ACC-NOAUTHOR PUBLISHERYEAR PRICE a particular book has value for each of the above attributes

16 ATTRIBUTE…. an attribute may be multi-valued, i.e., it has more than one value for a given entity; e.g., a book may have many authors an attribute which uniquely identifies entities of a set is called primary key attribute of that entity set composite attribute : date, address, etc

17 DOMAIN gives set of permitted values for an attribute all values may not be present at all times in database may be defined by type : integer, string - join-date of type date - Marks of type integer

18 PRIMARY KEYS to distinguish occurrences of entities distinction made using values of some attributes set of one/more attributes which, taken collectively, uniquely identify an entity in an entity set is called its candidate key. - Roll-no for a student - Acc-no for a book

19 PRIMARY KEYS….. No subset of it is a candidate key an entity may have multiple candidate keys primary key is a candidate key chosen by designer as the principal means of identification

20 EXAMPLE : A COLLEGE STUDENT : rollno, name, hostel-no., date- of-birth COURSE : courseno, name, credits TEACHER : empno, name, rank, room-no., tel-phone DEPT : name, tel-phone

21 EXAMPLE : A COLLEGE… this example will be refined further perception of reality and focus of design could have indicated more entities HOSTEL SEMESTER Or, teacher could only be an attribute EXERCISE : identify entities in a hospital and give a few instances of each

22 RELATIONSHIP represents association among entities e.g., a particular book is a text for particular course book ‘Software Engineering’ by Bruegge is text for course identified by code ‘SE308’ e.g., student ALI has enrolled for course SE308

23 RELATIONSHIP SET set of relationships of same type words ‘relationship’ and ‘relationship set’ often used interchangeably between certain entity sets binary relationship : between two entity sets ternary relationship : among three entity sets

24 RELATIONSHIP SET…. e.g., binary relationship set STUDY between STUDENT and COURSE relationship STUDY could be ternary among STUDENT, COURSE and TEACHER What is the difference ? a relationship may have attributes e.g., attribute GRADE and SEMESTER for STUDY

25 RELATIONSHIP SET…. relationships named using verbs or nouns Study Enroll Order EXERCISE : identify relationships and their attributes in the hospital example and give a few instances of each

26 DEPICTING A RELATIONSHIP entity sets as a collection entity instances by small circles relationship instances by small rectangle with connections to involved entities

27

28 PRIMARY KEY FOR REPATIONSHIPS made of primary keys of all participating entities e.g., primary key of STUDY is (rollno, courseno)