Structured Analysis Techniques

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

Developing ER-Diagram
Chapter 2.1 V3.1 Napier University Dr Gordon Russell
INFORMATION TECHNOLOGY IN BUSINESS AND SOCIETY SESSION 15 – RELATIONAL DATABASES SEAN J. TAYLOR.
ENTITY RELATIONSHIP MODELLING
Chapter 4 Enterprise Modeling.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Systems Development Life Cycle
Text-Book Chapters (7 and 8) Entity-Relationship Model
1 MIS 340: Data Modeling 2 Yong Choi School of Business CSUB.
Entity Relationship Diagrams
Entity-Relationship Modelling Introduced by Chen in 1976 The ER Model is used to construct the conceptual data model – independent of DBMS Most widely.
Modeling the Processes and Logic
Lecture 3 :Database Analysis and Design (II)
1 Data Modelling Which data to include in the database.
Database Design Concepts Lecture 7 Introduction to E:R Modelling Identifying Entities.
Entity/Relationship Modelling
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 Diagrams
Entity Relationship Modeling
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.
Entity Relationship Modelling. What is Entity Relationship Modelling? The Entity-Relationship model is – ” “ a data model for high-level descriptions.
Data Modeling ERM ERD.
COMM 226 Practical tips for creating entity relationship diagrams (ERDs) Chitu Okoli Associate Professor in Business Technology Management John Molson.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Database Systems: Design, Implementation, and Management Ninth Edition
Conceptual Design Lecture - 2 Database Development.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
Concepts and Terminology Introduction to Database.
5 Systems Analysis and Design in a Changing World, Fourth Edition.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
1 IRU – database design part one Geoff Leese September 2009.
Carmen David, Senior BA Business Analysis Carmen David, Senior BA Business Analysis Foundation in Business Analysis Session 7 MODELLING REQUIREMENTS.
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 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.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Description and exemplification of entity-relationship modelling.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
advanced data modeling
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Lecture 5 Entity Relationship Modeling
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Data Modeling AND ER MODELS.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Modeling the Processes and Logic.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Course Instructor: Kashif I hsan 1. Chapter # 6 2.
1 Entity Relationship Approach u Top-down approach to data modeling u Uses diagrams u Normalization - confirms technical soundness u Entity Relationship.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Entity/Relationship Modelling
Entity-Relationship Model
Case Studies: Data Modeling
Entity Relationship Diagrams
IT 244 Database Management System
Entity Relationship Model
Presentation transcript:

Structured Analysis Techniques

Entity Relationship Diagrams

Data models Most large software systems make use of a large database of information. An important part of system modelling is to define the logical form of the data processed by the system.

Entity Relationship Diagrams Entity-Relationship diagrams are a data modeling technique. E-R modelling uses three basic components: entities, attributes, relationships. Entities An entity may be defined as: An entity is a class of persons, places, objects, events or concepts about which we need to capture and store data. If a bank stores data about you, then to the bank you are an entity. If a business stores data relating to a piece of paper called an invoice, then this invoice is an entity.

Entity Relationship Diagrams Attributes An attribute is a data element associated with an entity. For example, the entity SUPPLIER is likely to have attributes such as supplier_name, supplier_address, supplier_phone_number and so forth. Relationships Entities are associated with each other via relationships. A relationship is a named association between two or more entity types. For example: the relationship PLAYS-FOR between the entity types PLAYER and TEAM. The relationship CITIZEN-OF between the entity types PERSON and COUNTRY.

Entity Relationship Diagrams Relationships (cont.) Degree of Relationship. The degree of a relationship may be: one-to-one (1:1) one-to-many (1:N) many-to-many (N:M) As an example, consider a company database which might contain the following relationships: The relationship HEAD-OF between entity types MANAGER and DEPARTMENT is 1:1. This means that a department has at most one head and that a manager is head of at most one department.

Entity Relationship Diagrams Relationships (cont.) Examples: The relationship SUPERVISES between the entity types MANAGER and EMPLOYEE is 1:N. This assumes that a manager may supervise any number of different employees but a given employee is supervised by at most one manager. The relationship ASSIGNED-TO between the entity types EMPLOYEE and PROJECT is N:M. Thus an employee may be assigned to many different projects and each project may have many employees assigned to it.

Notation Notation The graphical representations for E-R diagrams are very simple: A plain rectangle to represent the entity type Invoice A labeled line to represent the relationship

Degree of Relationship There are a number of different graphical conventions for representing the degree of each relationship. The following notation will be used within these notes: A B 1:1 A B 1:n

Example For Example: COURSE enrols STUDENT ONE course has enrolled on it ONE or MORE students. ONE student is enrolled on ONE course. ONE supplier is sent ONE or MORE orders. ONE order is sent to ONE supplier.

Example For Example: ONE loan refers to ONE book. ONE book is referred to on ONE loan.

Example College Database An Example: An ER model for a small college database comprising the entity types: DEPARTMENT, COURSE, STUDENT and LECTURER. Each department has many lecturers, one of whom is the head department. A lecturer belongs to only one department. Each department offers many different courses, each of which is taught by a single lecturer. A student may enrol for many courses offered by different departments.

Example College Database DEPARTMENT offers is_in head_of COURSE LECTURER teaches_on enrols STUDENT ER Diagram - Small College ( solution )

Example Local Education Authority Another Example: A local education authority (LEA) requires a system to hold details of the applicants who apply for courses run by local colleges. Each course is run at only one college, though more than one course is run at each college. An applicant may apply for several courses. Details are to be kept of the standard qualifications that the majority of applicants have.

Example Local Education Authority APPLICANT applies_for COURSE has is_run_by QUALIFICATIONS COLLEGE

Many to Many relationship Decomposing a Many-to-Many (N:M) Relationship Occasionally a many-to-many relationship will occur, relational databases cannot accommodate this relationship type, as such they must be removed. The situation is easily resolved because it is always possible to replace a many-to-many relationship type with two one-to-many types, by introducing an extra entity type into the diagram. This 'new' entity type may simply be the invention of the systems analyst, invented for the sole purpose of eliminating the many-to-many relationship type. In other cases, some actual, physical entity might exist which will provide the needed linkage.

Many to Many relationship Imagine a business which buys in a number of parts from its suppliers. Suppose investigation and analysis has shown that: any one supplier might supply more than one kind of part. any one kind of part might be bought in from a number of different suppliers. supplies SUPPLIER PART

Many to Many relationship The many-to-many relationship type is removed as follows: Thinking of an appropriate name for 'entity X' can be difficult. In such cases it is acceptable to form it from the names of the original two entities. Naming the two new relationships formed by the decomposition can pose a problem however, it is acceptable to leave the relationships blank providing this does not impair the clarity of the diagram. SUPPLIER PART X

Many to Many relationship Remember this? DEPARTMENT is_in offers head_of COURSE LECTURER teaches_on enrols STUDENT

Many to Many relationship The n:m relationship is now removed. DEPARTMENT is_in offers head_of teaches_on COURSE LECTURER receives ENROLMENT STUDENT performs

Guidelines Guidelines for Drawing an Entity-Relationship Diagram: Select likely entities. Select an identifier for each of the entities. Identify relationships between the selected entities. Sketch an E-R diagram, adding the degree of each relationship. Decompose any N:M relationships, allocating an identifier to any new entities formed.