ERD Notation: Entity & Attribute

Slides:



Advertisements
Similar presentations
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Advertisements

Entity-Relationship (ER) Modeling
© Copyright 2011 John Wiley & Sons, Inc.
Agenda & Objectives Agenda ▫Overview where data modeling fits within SDLC ▫Define data modeling components ▫Write business rules ▫Practice modeling various.
Data Flow Diagramming Rules Processes –a process must have at least one input –a process must have at least one output –a process name (except for the.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Basic Symbols.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Data.
Review Questions What is data modeling? What is the actual data model that is created called? Data modeling is a technique for organizing and documenting.
Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Process.
ANALYSIS PHASE Requirements Determination Use Case Analysis
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Data modelling uses two main techniques Entity relationship (E-R) modelling: a top- down approach Normalisation: a bottom-up approach.
Pertemuan 17 The Sales/Collection Business Process Matakuliah: M0034 /Informasi dan Proses Bisnis Tahun: 2005 Versi: 01/05.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data Modeling and Relational Database Design. Analyze and model the relationships between entities Draw an initial entity relationship diagram Read the.
Data Modeling using Entity Relationship Diagramming (ERD)
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition Copyright 2006 © John Wiley & Sons, Inc. All rights reserved..
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition Copyright 2006 © John Wiley & Sons, Inc. All rights reserved..
Systems analysis and design, 6th edition Dennis, wixom, and roth
CSE 441: Systems Analysis & Design
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 4th Edition Copyright © 2012 John Wiley & Sons, Inc. All rights.
Sept Ron McFadyen1 Section 10.1 Domain Models Domain Model: a visual representation of conceptual classes or real-world objects in a domain.
Database Design Principles – Lecture 3
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
BIS 360 – Lecture Eight Ch. 12: Database Design and Normalization.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Copyright Ó Oracle Corporation, All rights reserved. Assign Unique Identifiers A Unique Identifier (UID) is any combination of attributes and/or.
PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Chapter 5: Structural Modeling
When data and information has been collected, system analyst use the information to build a notation call Data flow Diagram (DFD) to picture the flow.
Systems Analysis and Design
Systems Analysis and Design
Systems Analysis and Design
Chapter 6 Structuring System Requirements: Conceptual Data Modeling
Classes, Sequence Diagrams and Triangulation
Database Design – Lecture 4
ER MODEL Lecture 3.
Data Modelling Chapter 7
بسم الله الرحمن الرحيم.
BAB 4 FASA REKABENTUK Permodelan Data (ERD) Objektif:
Entity Relationship Diagrams
ERD’s REVIEW DBS201.
ERD Exercises.
Database Systems: Design, Implementation, and Management Tenth Edition
Entity – Relationship Model
MIS2502: Data Analytics Relational Data Modeling
Database Modeling using Entity Relationship Model (E-R Model)
Mapping an ERD to a Relational Database
Entity Relation Model Tingting Zhang.
Presentation transcript:

ERD Notation: Entity & Attribute OR PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

ERD Notation: Relationship or PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Cardinality Cardinality - refers to the number of times instances in one entity can be related to instances in another entity One instance in an entity refers to one and only one instance in the related entity (1:1)  “one-to-one” One instance in an entity refers to one or more instances in the related entity (1:N)  “one-to-many” One or more instances in an entity refer to one or more instances in the related entity (M:N)  “many-to-many” Modality - Refers to whether or not an instance of a child entity can exist without a related instance in the parent entity Not Null means that an instance in the related entity must exist for an instance in another entity to be valid Null means that instance in the related entity is not necessary for an instance in another entity to be valid PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Relationship Cardinality …an example 1 : 1 one-to-one satu orang staf ( contoh ketua jabatan) akan menguruskan satu jabatan dan satu jabatan akan hanya mempunyai satu ketua jabatan sahaja 1 : N one-to-many satu orang pelanggan boleh membuat banyak tempahan tetapi bagi satu tempahan adalah untuk satu pelanggan sahaja M : N many-to-many satu orang pelajar boleh mendaftar banyak kursus dan satu kursus boleh ambil ramai pelajar PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Relationship Cardinality Mandatory 1 cardinality (1,1) or Mandatory many (M) cardinality (1, 2,…,many), n is a number for an upper limit) (1,n) or Optional 0 or 1 cardinality (0,1) or Optional zero-many cardinality (0,1,2,…many) (0,n) or PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Entity-Relationship Diagram: MISville Library ERD : Contoh Entity-Relationship Diagram: MISville Library This is the entity-relationship diagram for the MISville Library: Attributes B #1:  ISBN Number B #2:  Title B #3:  Subject(s) B #4:  Author(s) B #5:  Date of Publication B #6:  Acquisition Number LC #1:  Name LC #2:  Address LC #3:  Phone LC #4:  DOB LC #5:  SSN LC #6:  Card Number AJ #1:  ISBN Number AJ #2:  Title AJ #3:  Subject(s) AJ #4:  Author(s) AJ #5:  Date of Publication AJ #6:  Acquisition Number CC #1:  Book Title CC #2:  Author(s) CC #3:  Subject(s)  Data Modeling - ERDPowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Patient Doctor Insurance Claim Insurance Agent Whenever new patients are seen for the first time, they complete a patient information form that asks their name, address, phone number, and insurance agent, all of which is stored in the patient information file. Patients can be signed up with only one agent. Each time a patient visits its doctor, an insurance claim is sent to the agent for payment. The claim must contain information about the visit, such as the date, purpose, and cost. It would be possible for a patient to submit two claims on the same day. Draw an ERD for the situation. address name # phone Patient Doctor Insurance name visit submit sign (0, 2) date Insurance Claim Insurance Agent cost send (0, 2) (0, 1) purpose PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Practice: Food Order System Read the situation given below, Food Order System is used by Yummy Restaurant to manage every order from their customers. The Food Order System has few functions and very user friendly. It begins when the system receives order from the customer. The system will produce receipt by referring to the order. The order is also sent to the kitchen department. The system also used the information from the order to update their inventory as well as their sales. The system also has function to generate reports for the top management, i.e. sales report and inventory report. Food Order System digunakan oleh Yummy Restaurant untuk mengurus setiap tempahan dari pelanggan. Food Order System ini mempunyai beberapa fungsi dan ramah pengguna. Ia bermula apabila sistem menerima tempahan dari pelanggan. Sistem akan mengeluarkan resit dengan merujuk kepada tempahan. Tempahan juga dihantar kepada bahagian dapur. Sistem juga menggunakan maklumat dari tempahan untuk mengemaskini inventori serta jualan. Sistem juga mempunyai fungsi untuk menghasilkan laporan-laporan bagi pihak pengurusan, iaitu laporan jualan dan laporan inventori Draw ERD for the situation given. PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Update inventory and sales DFD Level 0 Order information Order information 1.0 Receive order CUSTOMER KITCHEN DEPARTMENT receipt Order information D1 Order file 2.0 Produce receipt Order information Order information 3.0 Update inventory and sales Order information D2 Inventory file D3 Sales file Updated information Updated information 4.0 Generate reports MANAGEMENT Inventory & sales Reports PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

ERD CUSTOMER make ORDER Send to KITCHEN DEPARTMENT update receive RECEIPT INVENTORY SALES generate generate INVENTORY REPORT SALES REPORT submit submit MANAGEMENT PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

ERD Building Tips Data stores of the DFD should correspond to entities Only include entities with more than one instance of information Don’t include entities associated with implementation of the system (they will be added later) – physical model of ERD PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Exercise For each pair of sentences, identify entities and the relationship representing the sentences. "Each Student must take one or more Modules" "Each Module must be taken by one or more Students" "Each Customer must receive at least one Delivery" "Each Delivery must be for only one Customer" "A Client my have an Account Manager" "Each Account Manager has only one Client" PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Patient Doctor Insurance Claim Insurance Carrier Whenever new patients are seen for the first time, they complete a patient information form that asks their name, address, phone number, and insurance carrier, all of which is stored in the patient information file. Patients can be signed up with only one carrier. Each time a patient visits its doctor, an insurance claim is sent to the carrier for payment. The claim must contain information about the visit, such as the date, purpose, and cost. It would be possible for a patient to submit two claims on the same day. Draw an ERD for the situation. address name # phone Patient Doctor Insurance name visit submit date Insurance Claim Insurance Carrier cost send (0, 2) (0, 1) purpose PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Associative Entity An entity type that associates the instances of one or more entity types and contains attributes that are peculiar to the relationship between those entity instances Example: Date_completed is not a property of entity EMPLOYEE or COURSE, it is a property of the relationship between EMPLOYEE and COURSE. Employee_id Course_Name PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

SHIPMENT Entity Type (an Associative Entity) PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Type of Attribute Derived Attribute Composite Attribute Alamat STAF No_Staf Nama Umur Tarikh_lahir Jalan Bandar Poskod No_rumah Negeri Multivalued Attribute STAF No_Staf Nama Nama_tanggungan Create weak entity to separate the repeating data STAF No_Staf Nama TANGGUNGAN mempunyai 1 M PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Degree of a Relationship PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Sample of ERD SUPPLIER SHIPMENT ITEM PRODUCTION PLAN MASTER SCHEDULE PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Final E-R Diagram for Hoosier Burger’s Inventory Control System PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.