Principles Graphical Languages Modeling Constraints

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

1 SA0951a Entity-Relationship Modelling. 2 What is it about? ER model is used to show the Conceptual schema of an organisation. Independent of specific.
the Entity-Relationship (ER) Model
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Data Modeling (CB 12) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems by Connolly & Begg, © Addison Wesley 2002)
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Modern Systems Analysis and Design Third Edition
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
System Analysis - Data Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
Lecture Eleven Entity-Relationship Modelling
Modeling Data The Entity Relationship Model (ER) For Database Design.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
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.
Modern Systems Analysis and Design Third Edition
Entity-Relationship modeling Transparencies
Yong Choi School of Business CSUB
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 7th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
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.
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
Data Modeling ERM ERD.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Entity Relationship Diagrams Objectives s Learn the Elements of the E-R model (entities, attributes, and relationships) s Show how to apply the E-R model.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
Database Systems Lecture # 7 8 th Feb, Conceptual and Logical Design Person buys Product name pricenamessn Conceptual Model: Relational Model: (plus.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
Database Design Principles – Lecture 3
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
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.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
Databases Illuminated Chapter 3 The Entity Relationship Model.
Entity Relationship 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.
Modern Systems Analysis and Design Third Edition
1 Database Systems Entity Relationship (E-R) Modeling.
DBMS ER model-2 Week 6-7.
Bogdan Shishedjiev Requirements1 Requirement Engineering Requirements Existing Systems Business Rules.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Data Modeling and the Entity-Relationship Model CS 475 Lecture Notes.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
Ch 05. Basic Symbols ( manino ). Cardinalities Cardinality Notation.
The Relational Model Lecture #2 Monday 21 st October 2001.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Data Modeling Using the Entity- Relationship (ER) Model
Entity Relationship Diagram
Chapter # 3 Data Modeling Using the Entity-Relationship (ER) Model
Conceptual Design & ERD Modelling
Entity-Relationship Modelling
Entity-Relationship Modeling
Lecture3: Data Modeling Using the Entity-Relationship Model.
Entity-Relationship Modeling
Entity-Relationship Modelling
Data Modeling for Database Design 2
Constraints History Analytical Model
Conceptual Data Modeling Using Entities & Relationships
Entity-Relationship Diagram (ERD)
Presentation transcript:

Principles Graphical Languages Modeling Constraints Conceptual Data Model Principles Graphical Languages Modeling Constraints Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Principles Main approach – object-oriented Class (entity set, object) Association (relationship, relation) Data member (attribute, property) Instance (entity, occurrence) Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Languages Entity Relationship model (E-R) (ERM) Entity set Relationship Attribute Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Languages MERISE Object with occurrences Relation Propertiy Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Languages Object Role Modeling (ORM)                             Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Languages Class Diagram Class with instances Association Property Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Conceptual Model Goals Starting from the dictionary and the rules this model tries to reveal the relations among the data and their interaction Example – School Rules Every class has a one and only one room. Every subject is teaches by only one teacher. Every class is taught a subject a fixed number of hours. Every student can have no more one mark in every subject. The school manages the timetable and the rating of students and teachers.. Dictionary Student’s Address, Subject, Number of Hours, Class Name, Student's Family Name, Teacher‘s Name, Mark, Room Number, Student’s Name Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Concepts Class (Entity class, Entity instance) Association Relationship between entity instances Attribute Properties Bogdan Shishedjiev Conceptual Data Model

Defining an Entity Class Give it a name (a noun) Define its attributes Define the rules What belongs to the class? How the instances are identified in the class? Identifying an instance (Identifier) First Name Last Name Address STUDENT Attribute NAME Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Association Give a name (a verb) Determine the participating classes Define the cardinalities Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Examples Bogdan Shishedjiev Conceptual Data Model

Identifier of an Association Bogdan Shishedjiev Conceptual Data Model

Cardinalities of an Association Cardinalities One to One 0..1 – 0..1 – Every student can use one locker 0..1 – 1 1 – 1 Every student uses a locker and ther are no free lockers Bogdan Shishedjiev Conceptual Data Model

Cardinalities of an Association Cardinalities One to Many 1 – 1..N 0..1 – 1..N 1 – 0..N 0..1 – 0..N Bogdan Shishedjiev Conceptual Data Model

Cardinalities of an Association Cardinalities Many to Many 1..N – 1..N 0..N – 1..N 0..N – 0..N Bogdan Shishedjiev Conceptual Data Model

Cardinalities of an Association Generalization Minimal cardinality Mandatory participation of every instance - 1 Optionally participation of every instance - 0 Maximal cardinality To only one instance of the other class – 1 To multiple instances of the other class - N Bogdan Shishedjiev Conceptual Data Model

Dimension of an Association Number of different classes participating in it Multidimensional Bogdan Shishedjiev Conceptual Data Model

Dimension of an Association Multidimensional Bogdan Shishedjiev Conceptual Data Model

Dimension of an Association One-dimensional (Reflexive) Bogdan Shishedjiev Conceptual Data Model

Aggregate Associations Aggregation Composition Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Weak Entities It is identified through the association Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Recommendations Don’t use high dimension associations Be aware not replace classes by associations Bogdan Shishedjiev Conceptual Data Model

Case Study – Management Rules A patient is characterized by: Unique Number Name address Phone Number General practitioner is characterized by: Serial Number Each patient is supervised by a GP A policlinic is characterized by: Address A specialist is characterized by: Each specialist has one or more specialties Each specialist can give consultations in one or more policlinics Each policlinic groups several specialists A patient can make an appointment for a consultation with specialist in a given policlinic, The specialist must work in this policlinic The appointment is for a date that is later than the date of appointment If the consultation does not take place a new appointment must be made no matter what are reasons for the failure Lists of appointment for every specialist are made at the beginning of the day. In the end of every day two reports are made: A log of appointment made A log of consultations done Bogdan Shishedjiev Conceptual Data Model

Case Study - Policlinic Bogdan Shishedjiev Conceptual Data Model

Case Study - Policlinic Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Subtypes Example – Hardware components order Bogdan Shishedjiev Conceptual Data Model

Bogdan Shishedjiev Conceptual Data Model Subtypes Bogdan Shishedjiev Conceptual Data Model