Levels of Database Modeling High degree of abstraction Conceptual model User view 1 User view 2 Implementa- tion model Physical model Medium degree of.

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

Entity Relationship (E-R) Modeling Hachim Haddouti
Entity Relationship (ER) Modeling
Chapter 4 Entity Relationship (E-R) 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.
Entity Relationship (ER) Modeling
Data Modeling is an Analysis Activity
Entity Relationship (E-R) Modeling
System Analysis - Data Modeling
Modeling Data The Entity Relationship Model (ER) For Database Design.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Entity Relationship Diagrams
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
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
Chapter 4 Entity Relationship (E-R) Modeling
Chapter Five Data Modeling with the Entity-Relationship Model.
Entity-Relationship (E-R) Model
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
 Keys are special fields that serve two main purposes: ◦ Primary keys are unique identifiers of the relation in question. Examples include employee numbers,
Ch5: ER Diagrams - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
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.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Chapter 5 Entity Relationship (ER) Modelling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Unit 3 Conceptual Data Modeling. Key Concepts Conceptual data modeling process Classes and objects Attributes Identifiers, candidate keys, and primary.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Relationship Degree Indicates number of entities or participants.
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
Databases Illuminated Chapter 3 The Entity Relationship Model.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Entity Relationship Modeling
CIS 210 Systems Analysis and Development Week 6 Part I Structuring Systems Data Requirements,
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Conceptual Design & ERD Modelling
TMC2034 Database Concept and Design
Tables and Their Characteristics
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems Instructor Name: Lecture-9.
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 4 Entity Relationship (ER) Modeling
Database Management System
Entity-Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Levels of Database Modeling High degree of abstraction Conceptual model User view 1 User view 2 Implementa- tion model Physical model Medium degree of abstraction Low degree of abstraction

Entity Relationship (E-R) Model E-R model is used for conceptual modelingE-R model is used for conceptual modeling Components:Components: –Entities/Objects –Relationships –Attributes –Domains (of attributes’ possible values) –Key attributes and non-key attributes »candidate key »primary key »secondary key »foreign key Entity set (type) versus entity instance (occurrence)Entity set (type) versus entity instance (occurrence)

A figure from the original Chen’s article DEPARTMENT EMPLOYEE DEPENDENT DEPT-EMP PROJECT SUPPLIER PART PROJ-WORK PROJ- MANAGER EMP-DEP PROJ-PART SUPP-PROJ -PART COMPONENT 1 N 1 1 N N N N N M M M M P N

Relationships Associations between entitiesAssociations between entities Names should be descriptiveNames should be descriptive Degree: the number of associated entitiesDegree: the number of associated entities –unary, binary, ternary, etc. relationships Recursive relationshipRecursive relationship Connectivity + cardinality + dependency + participation = confusionConnectivity + cardinality + dependency + participation = confusion

Confusion Reconciled 2 concepts: Cardinality and Participation2 concepts: Cardinality and Participation Cardinality: at most how many entity occurrences of the other entity type are associated with one occurrence of this entity type?Cardinality: at most how many entity occurrences of the other entity type are associated with one occurrence of this entity type? Participation: is every entity occurrence associated?Participation: is every entity occurrence associated?

Cardinality PROFESSORCOURSETEACHES 1M What is the maximum number of courses taught by a professor? Many (M).What is the maximum number of courses taught by a professor? Many (M). What is the maximum number of professors teaching a course? One (1) (fact: no team teaching at this school).What is the maximum number of professors teaching a course? One (1) (fact: no team teaching at this school).

Participation PROFESSORCOURSETEACHES What is the minimum number of courses taught by a professor? None ( O ).What is the minimum number of courses taught by a professor? None ( O ). What is the minimum number of professors teaching a course? One ( -- ).What is the minimum number of professors teaching a course? One ( -- ). Has every course an association (relationship)? Yes.Has every course an association (relationship)? Yes. Has every professor an association? Not necessarily.Has every professor an association? Not necessarily. A footnote: the circle should really be on the other side but this is where it is in the book (?!).

Cardinality and Participation Combined (better notation) PROFESSORCOURSETEACHES (0,N)(1,1) A PROFESSOR:A PROFESSOR: what is the minimum number of courses one teaches? (0)what is the minimum number of courses one teaches? (0) what is the maximum number of courses one teaches? (N)what is the maximum number of courses one teaches? (N) A COURSE:A COURSE: what is the minimum number of professors teaching it? (1)what is the minimum number of professors teaching it? (1) what is the maximum number of professors teaching it? (1)what is the maximum number of professors teaching it? (1) Format: (min, max)

Some special cases revisited Weak entitiesWeak entities –existence-dependent –primary key partially or totally derived from parent entity Recursive entitiesRecursive entities –entities are related to other entities of the same entity type Composite entitiesComposite entities –should relationships have properties (contain attributes)? Entity supertypes and subtypesEntity supertypes and subtypes –generalization hierarchy –inheritance –nonoverlapping (G) and overlapping (Gs) categorization

Generalization Hierarchy: An Example PERSON EMPLOYEESTUDENT PROFESSORADMINISTRATORUNDERGRADUATEGRADUATE Gs GsG

Semantic Data Modeling Practice Time!