1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.

Slides:



Advertisements
Similar presentations
Chapter 9 Structuring System Requirements: Logic Modeling
Advertisements

Chapter 8 Logic Requirements
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Systems Analysis Requirements structuring Process Modeling
Chapter 8 Structuring Requirements Logic Modeling.
Alternative Approach to Systems Analysis Structured analysis
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Logic Modeling. Learning Objectives Use Structured English as a tool for representing steps in logical processes in data flow diagrams Use Structured.
CHAPTER 9: Structuring System Requirements: Logic Modeling
Logic Modeling Data flow diagrams do not show the logic inside the processes Logic modeling involves representing internal structure and functionality.
Jump to first page Chapter 2c System Analysis - Logic Modeling.
Process Descriptions: Logic Modeling
© 2005 by Prentice Hall Chapter 9 Structuring System Requirements: Logic Modeling Modern Systems Analysis and Design Fourth Edition.
APPENDIX C DESIGNING DATABASES
Data Modeling 1 Yong Choi School of Business CSUB.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Logic Modeling MIS 322. Why do we need Logic Modeling? Lets look at the following DFD.
Chapter 9 Structuring System Requirements: Logic Modeling
© 2005 by Prentice Hall Chapter 8 Structuring System Logical Requirements Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George.
Data Modeling Using the Entity-Relationship Model
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.
Information Systems System Analysis 421 Class Eight.
MBI 630: Class 6 Logic Modeling 9/7/2015. Class 6: Logic Modeling Logic Modeling Broadway Entertainment Co. Inc., Case –Group Discussion (Handout) –Logic.
Chapter 8 Structuring System Requirements: Logic Modeling
© 2008 Prentice Hall, Ovidiu Noran Lecture 7a 1 Modelling Logic Requirements (Textbook Chapter 8)
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 8 Slide 1 Chapter 8 Structuring System Logical Requirements.
Chapter 8 Structuring System Logical Requirements.
Systems Analysis and Design for the Small Enterprise section III Process design.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
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.
Description and exemplification of entity-relationship modelling.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
Cis339 Modern Systems Analysis and Design Fifth Edition Chapter 8 Structuring System Logic Requirements: 8.1.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
© 2005 by Prentice Hall Chapter 9 Structuring System Requirements: Logic Modeling Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
Modern Systems Analysis and Design Fourth Edition Chapter 8 Structuring System Logical Requirements (process description)
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 9 Structuring.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Data Modeling Using the Entity- Relationship (ER) Model
Business System Development
Chapter 8 Structuring System Logical Requirements
Business System Development
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 2 : Data Flow Diagram
Process & Logic Modeling
بسم الله الرحمن الرحيم.
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 9 Structuring System Requirements: Logic Modeling
CIS 210 Systems Analysis and Development
Chapter 8 Logic Requirements
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 8 Structuring System Logical Requirements
Entity-Relationship Diagram (ERD)
Chapter 9 Structuring System Requirements: Logic Modeling
Chapter 9 Structuring System Requirements: Logic Modeling
Presentation transcript:

1 Information System Analysis Topic-3

2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database. ER diagrams often use symbols to represent three different types of information. Boxes are commonly used to represent entities. Diamonds are normally used to represent relationships and ovals are used to represent attributes.

3 Entity Relationship Diagram \ Definition Also Known As: ER Diagram, E-R Diagram, entity- relationship model. Emphasis on data and not on actions on the data

4 Entity Relationship Diagram \ Symbols Entity An object that exists in the real world, that has certain properties and that is distinguished from other objects. It tells you about something or somebody in the system. A noun, may be with an adjective

5 Entity Relationship Diagram \ Symbols A collection of things that share common properties or characteristics May describe - Roles-people or organizations EMPLOYEE - Tangible things MACHINE, BUILDING - Events SALE, REGISTRATION - Locations STATE, BRANCH - Concepts COURSE

6 Entity Relationship Diagram \ Symbols Relationship Associations between two or more entities Examples:- – ManageEmployees manage projects – WorkEmployees work in projects

7 Entity Relationship Diagram \ Symbols Types of Relationship One-to-One Many-to-One (One-to-Many) Many-to-Many

8 Entity Relationship Diagram \ Symbols One –to-One Each instance of one entity class E1 can be associated with at most one instance of another entity class E2 and vice versa. Example: Each employee can work in at most one project and each project employs at most one employee.

9 Entity Relationship Diagram \ Symbols

10 Entity Relationship Diagram \ Symbols

11 Entity Relationship Diagram \ Symbols Many –to-One Each instance of one entity class E1 can be associated with zero or more instances of another entity class E2, but each instance of E2 can be associated with at most 1 instance of E1. Example: Each employee can work in at most one project; each project can employ many engineers.

12 Entity Relationship Diagram \ Symbols

13 Entity Relationship Diagram \ Symbols

14 Entity Relationship Diagram \ Symbols Many –to-Many Each instance of one entity class can be associated with many instances of another entity class, and vice versa. Example: Each employee can work in many projects; each project can employ many employees

15 Entity Relationship Diagram \ Symbols

16 Entity Relationship Diagram \ Symbols

17 Entity Relationship Diagram \ Symbols

18 Entity Relationship Diagram \ Symbols

19 Entity Relationship Diagram \ Symbols

20 Entity Relationship Diagram \ Symbols Attribute The properties of entities and relationships Example Employee [ Employee No, Name, Title, Salary]

21 Entity Relationship Diagram \ Symbols Types of Attribute Single Example : Social insurance number Multivalued Example : Lecturers of a course Composite Example : Address consisting of Apt#, Street, City, Zip

22 Entity Relationship Diagram \ Symbols Types of Attribute

23 Entity Relationship Diagram Entity identifier One or more of the attributes that can uniquely identify each instance of a given entity type Example: Employee:Employee No Project:Project No

24 How do we start an ERD? 1. Define Entities: these are usually nouns used in descriptions of the system, in the discussion of business rules, or in documentation; identified in the narrative 2. Define Relationships: these are usually verbs used in descriptions of the system or in discussion of the business rules (entity ______ entity); identified in the narrative

25 How do we start an ERD? 3. Add attributes to the entities; and suggest the keys or identifiers. 4. Add cardinality to the relations 5. Represent that information with symbols

26 ERD \ Example A house is identified by a three part address consisting of a No., Street, and City. Each house also has a style and a set of colors. 2. A person is identified by a social insurance No.. Each person also has a name, age, and a sex. 3. Any person lives in at most one house, and a house can have zero or more persons living there. 4. Each person may own zero or more houses, and every house is owned by at least one person.

27 ERD \ Example -2 \ Company Dbase  A company has a number of employees, and every employee has a unique number assigned by the company, required to store his/her name, address, and date of birth. Some user applications need to refer to the city, state, and zip of the employee's address.  The company also has several projects. Each project has a unique number, a unique name, and start date. A project may have several locations.  Each employee may be assigned to one or more projects, or may not be assigned to any project, and a project must have at least one employee assigned.  An employee may have many skills. Each skill is assigned a number, and short description of each skill.

28 ERD \ Example -3 \ Company Dbase The company is organized into departments. Each department has a unique name, a unique number, and a particular employee who manages the department. We keep track of the start date when that employee began managing the department. A department may have several locations. A department controls a number of projects, each of which has a unique name, a unique number, and a single location. We store employee’s name, social security number, address, salary, sex, and birth date. An employee is assigned to one department but may work on several projects, which are not necessarily controlled by the same department. We keep track of the numbers of hours per week that an employee works on each project. We also keep track of the direct supervisor of each employee. We want to keep track of the dependents of each employee for insurance purpose. We keep each dependent’s first name, sex, birth date, and relationship to the employee.

29 The ER conceptual schema diagram for the COMPANY database.

30 Logic Modeling / System Specification Data flow diagrams do not show the logic inside the processes Logic modeling involves representing internal structure and functionality of processes depicted on a DFD Logic modeling can also be used to show when processes on a DFD occur The purpose of logic modeling is to show the rules that govern (Control-Identify) the behavior of processes represented in data flow diagrams

31 Logic Modeling Deliverables and Outcomes: – Structured English – Decision Tables – Decision Trees

32 Modeling Logic with Structured English Modified form of English used to specify the logic of information processes Uses a subset of English – Action verbs – Noun phrases – No adjectives or adverbs

33 Modeling Logic with Structured English No specific standards Similar to programming language – If conditions – Case statements – Repetition

34 Structured English\Example DFD for Hoosier Burger’s Inventory System

35 Structured English\Example Process 3 : Generate Orders Do Read next Inventory-record Begin IF IF Quantity –in- stock is less than Min.-Order-Quantity THEN Generate Order End IF UNTIL End - of - File

36 Modeling Logic with Decision Tables A matrix representation of the logic of a decision Specifies the possible conditions and the resulting actions Best used for complicated decision logic

37 Modeling Logic with Decision Tables Consists of three parts 1. Condition stubs Lists condition relevant to decision 2. Action stubs Actions that result from a given set of conditions 3. Rules Specify which actions are to be followed for a given set of conditions

38 Modeling Logic with Decision Tables Indifferent Condition – Condition whose value does not affect which action is taken for two or more rules Standard procedure for creating decision tables – Name the condition and values each condition can assume – Name all possible actions that can occur – List all rules – Define the actions for each rule – Simplify the table

39 Decision Tables \ Example Complete decision table for payroll system example

40 Decision Tables \ Example Reading Rules: To read the rules, start by reading the values of the conditions as specified in the first column: employee type is “S”, and hours worked less than 40. when both of these conditions occur, the payroll system is to pay the base salary.

41 Decision Tables \ Example NOTE: The Number of hours worked does not affect the outcome for rules 1,3, and 5, so for these rules, hours worked is an indifferent conditions, which mean, its value does not affect the action taken. Because of the indifferent condition for 1,3, and 5, we can reduce the number of rules by condensing rules 1,3, and 5 into one rule.

42 Decision Tables \ Example Reduce decision table for payroll system Rules Conditions / Courses of Actions 4321 HHHSEmployee Type > 4040< 40--Hours Worked XPay Base Salary XXXCalculate Hourly Wage XCalculate Overtime XProduce Absence Report

43 Decision Tables \ Example Complete decision table for Hoosier Burger’s Inventory Recording System

44 Decision Tables \ Example Reduce decision table for Hoosier Burger’s Inventory Recording System

45 Modeling Logic with Decision Trees A graphical representation of a decision situation Decision situation points are connected together by arcs and terminate in ovals Two main components – Decision points represented by nodes – Actions represented by ovals

46 Modeling Logic with Decision Trees Read from left to right Each node corresponds to a numbered choice on a legend All possible actions are listed on the far right

47 Modeling Logic with Decision Trees The following figure shows Decision tree representation of the decision logic in the decision tables in the previous example, with only two choices per decision point

48 Modeling Logic with Decision Trees

49 Deciding Among Structured English, Decision Tables and Decision Trees Criteria Structured English Decision Tables Decision Trees Determining Conditions and Actions Second BestThird BestBest Transforming Conditions and Actions into Sequence BestThird BestBest Checking Consistency and Completeness Third BestBest

50 Summary Several methods of logic modeling – Structured English  Primarily communication technique for analysts and users – Decision Tables  Conditions are listed in condition stubs  Possible actions are listed in action stubs  Rules link conditions with actions  Lists all possible Rules

51 Summary - Decision Trees  Conditions are portrayed by decision points  Values are represented by paths between decision points and ovals that contain actions Comparison of Structured English, Decision Tables and Decision Trees  Most studies show that decision trees are best for many criteria  There is no best technique  Analyst must be proficient in all three