Database Design Concepts Lecture 7 Introduction to E:R Modelling Identifying Entities.

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Database development (MIS 533) MBS in Management Information Systems and Managerial Accounting Systems (2007 / 2008) Fergal Carton Business Information.
Chapter 2.1 V3.1 Napier University Dr Gordon Russell
Lecture 9 Descriptors, Events & Event Tables INFO1409 Systems Analysis & Design Module HND Year /9.
ENTITY RELATIONSHIP MODELLING
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
1 BTEC HNC Systems Support Castle College 2007/8 Systems Analysis Lecture 7 Descriptors Events Events Tables.
Data Modeling using the Entity-Relationship (ER) Model
Revised by Ivor Perry Sept Introduction to Data Modelling.
Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.
Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:
Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.
Lecture 10 Conversion to tables Database Design Concepts INFO1408.
Lecture 3 :Database Analysis and Design (II)
Systems Analysis and Design in a Changing World, 6th Edition
Database Design Concepts Info1408
Entity/Relationship Modelling
Data Modeling 1 Yong Choi School of Business CSUB.
Section 07Entity Relationship Diagrams1 07 Entity Relationship Diagrams (ERD) A Data Modelling Case Tool HSQ - DATABASES & SQL And Franchise Colleges By.
Practical tips for creating entity relationship diagrams (ERDs) Chitu Okoli Associate Professor in Business Technology Management John Molson School of.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Entity-Relationship Modeling I The cautious seldom err. Confucius.
Data Modeling Using the Entity-Relationship Model
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Overview of Database Development
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
SAD - DFD Context Diagrams
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
Database Design Principles – Lecture 3
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Database Design – Lecture 3 Conceptual Database Design.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Carmen David, Senior BA Business Analysis Carmen David, Senior BA Business Analysis Foundation in Business Analysis Session 7 MODELLING REQUIREMENTS.
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.
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.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
IMS 4212: Introduction to Data Modeling—Relationships 1 Dr. Lawrence West, Management Dept., University of Central Florida Relationships—Topics.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
Carnegie Mellon University © Robert T. Monroe Management Information Systems Data Modeling Management Information Systems Robert.
Section 11ER Tables1 HSQ - DATABASES & SQL And Franchise Colleges 11 ER Tables By MANSHA NAWAZ.
Database Design – Lecture 4 Conceptual Data Modeling.
Domain Classes – Part 1.  Analyze Requirements as per Use Case Model  Domain Model (Conceptual Class Diagram)  Interaction (Sequence) Diagrams  System.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
Dr Gordon Russell, Napier University Data Analysis 1 - V2.0 1 Data Analysis 1 Unit 2.1.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
HNDComputing – DeMontfort University  DeMontfort University 2011 Entity Relationship Modelling (continued) wk4 Database Design ConceptsDatabase Design.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Introduction to Database Systems
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
Database Design Chapters 17 and 18.
Entity Relationship Modeling
Entity/Relationship Modelling
Data Modeling Using the ERD
Entity-Relationship Model
Entity-Relationship Modeling
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Data Modelling Introduction
MIS2502: Data Analytics Relational Data Modeling
Database Design Chapters 17 and 18.
IT 244 Database Management System
MIS2502: Data Analytics Relational Data Modeling 2
Presentation transcript:

Database Design Concepts Lecture 7 Introduction to E:R Modelling Identifying Entities

Objectives To introduce the notation used in E:R modelling To explain what is meant by an Entity Introduce a strategy for identifying entities in a given scenario Introduce the concept of a relationship Show how optionality and degree are shown using the notation

Entity Relationship Diagrams Entities and Relationships An entity is a set of objects of the same type I.e. they have the same properties and they behave in a similar way EG Student entity  Bob  Nazia  Jim

Entity An entity has attributes or properties associated with it Eg Name Age Address And have relationships with other entities (These are the associations between the entities) Eg A Student is associated with a Course A Course is associated with a number of Modules

Identifying Entities We need to identify the things of interest to the users of the system Things Tangible Things Airplane Book Vehicle Roles Played Employee Student Lecturer Organisational Units Warehouse Department Accounts Section Event, incidents or interactions Flight, Order, Contract, Invoice, Payment Service call

Identifying the Entities One method is to identify all nouns associated with the system 1. List all the nouns the users mention in their description of the system 2. Review all documentation including sample forms from the existing systems 3. Make a list of all these nouns

Identifying the Entities For each noun on the list for it to be included (stay on the list) 1. Is it a thing the system needs to know about? 2. Is it inside the scope of the system? 3. Is there more than one of these objects? If the answer is yes to all of these question it stays on the list. If not remove it

Remove a noun from the list if you can answer yes to any of these questions 1. Is it another name for something already on the list? 2. Is it an input or output from the system that can be produced from other information you have identified? 3. Could it be a property of some other thing you have identified? 4. Are you unsure of any of these answers? if so note it for further research

At the end of this exercise we have a list of entities After follow up research to clear up any we are not sure about. Do not worry about missing any, they will turn up.

Relationships between Entities An association between entities ( in simple terms) Customer places an order Student enrols on a course

Properties of Relationships/ Associations Often described by a verb Often bi-directional Customer places an order Order is placed by a customer Have multiplicity For each direction  Customer places many orders  Order is placed by exactly one customer Shown by a line

Enterprise rules When we draw an E:R model we need to identify all the relationships between that entity and other entities These are known as Enterprise rules- these describes the rules the business uses Eg a student can only ever enrol on one course However another college may allow students to enrol on more than one course. This information comes from systems investigation and we need to know, to be able to design a useful database

ER Diagram An ER Diagram is a pictorial representation of Entity (type) level enterprise rules within the boundary of what exists or is required Basic notation of ER Diagram: NB - the colours are not part of the syntax = Entity = Relationship EmployeeMachine works on Often hard to name the relationship.

Participation Condition Otherwise called Membership Class Type of participation of an entity in a relationship Obligatory  every occurrence of an entity must participate OR Non-Obligatory  occurrence(s) of an entity can exist without participating in the relationship.

Participation Condition is shown as a dot or blob Enterprise Rules Represented: “An employee must work on one or many machines” (dot inside) “A machine is worked on by zero, one or many employees” (dot outside) EmployeeMachine Works on MM  

Example E:R Diagram Student Module Registers on m m

Multiplicity Shown by the use of 1or m on the relationship 0 shown by circle outside entity box Circle inside box says there must be at least 1 From the example A (one,each) student must be registered on one or more modules Other way A module has 0, one or more students registered on it

A student enrols on exactly one course Reading the relationship the other way A course may have 0, one or more students enrolled on it More Examples of multiplicity Student Course enrols 1 m

An employee may have one car And A car must belong to exactly one employee only Employee Car Has 11

Project Works_on Works_in Based_in Dept Room Fill in the degree of association (0,1,m etc.) and participation conditions (dots) (You will need to make a few assumptions). Employee

Employees may work on several projects but some employees do not work on projects. New projects may have no employees assigned. Some projects have many employees involved. Each employee is in just one department. Some employees are assigned a single room, others are not assigned a room at all. Rooms are usually shared

Guidelines The dots on m:m relationships are usually outside (non-obligatory) The dot that goes with the m of a 1:m relationship is usually outside too (that’s the dot beside the 1) These are very good guidelines for beginners to apply You need to be very sure of any variation from these two guidelines The other useful rule to remember is that 1:1 relationships are quite rare If you have one it’s probably WRONG!

Notations Many notations are used for Entity- Relationship modelling We use the Chen notation, which is particularly good for beginners. It is not the same notation as in some of the text books. The meaning and concepts are the same whatever the notation It is important that you do not mix the notation in a model.

Summary You should now know what is meant by an entity Be able to ‘read’ an E:R model

References Satzinger, Burd and Jackson Systems analysis and design in a changing world Chapter