Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

Systems Development Life Cycle
Modeling the Data: Conceptual and Logical Data Modeling
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Database Design & Mapping
System Analysis - Data Modeling
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Entity Relationship Diagrams Basic Elements and Rules.
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Entity-Relationship Model and Diagrams (continued)
Methodology Logical Database Design for the Relational Model
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Modeling & Designing the Database
Transforming Data Models into Database Designs
Database Design & ER Diagrams
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Entity-Relationship Design
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
Data Modeling ERM ERD.
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Web-Enabled Decision Support Systems
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
1 A Guide to MySQL 2 Database Design Fundamentals.
Logical Database Design Relational Model. Logical Database Design Logical database design: process of transforming conceptual data model into a logical.
Database Design Principles – Lecture 3
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
1 A Guide to MySQL 2 Database Design Fundamentals.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Database Design – Lecture 4 Conceptual Data Modeling.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
DES715 – Database Design Conceptual design. Database Life Cycle Database initial study Database design Implementation Testing Operation Maintenance.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Logical Database Design and Relation Data Model Muhammad Nasir
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Entity-Relationship Model
Tables and Their Characteristics
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
Data Models.
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Review of Week 1 Database DBMS File systems vs. database systems
Entities Things about which you need to store data. One entity for each different thing. At least two attributes At least two occurrences Not a property.
ITEC 3220A Using and Designing Database Systems
Entity-Relationship Diagram (ERD)
Guide to Modeling Keys to E-R diagrams.
Guide to Modeling Keys to E-R diagrams.
Entity-Relationship Design
Presentation transcript:

Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design

Information Access Mgt09/12/972 TOP DOWN DATA ANALYSIS – Computer systems are extremely complicated and cannot be developed without careful planning. The first step is generally to build a model of the information system based on the general objectives and goals it must meet. This is called top down modeling.

Information Access Mgt09/12/973 The Data Life Cycle

Information Access Mgt09/12/974 Data Modeling Stages

Information Access Mgt09/12/975 Babysitter Service The AITP Service Club wants to run a babysitting service. Customers call to request a sitter and the Club Coordinator assigns an employee to sit for the customer from a list of employees available for the particular day requested.

Information Access Mgt09/12/976 The Data Life Cycle

Information Access Mgt09/12/977 The Data Life Cycle

Information Access Mgt09/12/978 Functional Decomposition l Assign Employee Take Call Check Availability Assign to Job Contact Employee Confirm Appointment l Determine Availability

Information Access Mgt09/12/979 Functional-Entity Decomposition

Information Access Mgt09/12/9710 The Data Life Cycle

Information Access Mgt09/12/9711 Entity-Relationship Model A logical representation of the data of an organization or business area in graphical form

Information Access Mgt09/12/9712 E-R Diagram Employee Job Customer

Information Access Mgt09/12/9713 Data-Flow Model A logical representation of the processes and data transformation of a system or organization in graphical form

Information Access Mgt09/12/9714 Data Flow Diagram Context Diagram Babysitter Information System Customer Employee Request Confirm- ation Assignment Availability

Information Access Mgt09/12/9715 Data Flow Diagram Level 1 Request Confirm- ation 1. Assign Employee Availability 2. Record Avail- ability Assignment D1 | Customer D2 | Employee New CurrentAvail Times D3 | Jobs Job Assign Avail Times

Information Access Mgt09/12/9716 Communications Model A representation of the location at which data is stored and processed and the communications links that connect them.

Information Access Mgt09/12/9717 Entity Relationship Models l A good E-R model has One table for every entity in the business system Correctly drawn relationships indicating 1-1 or 1-m cardinalities Optionality indicators to support needed referential integrity

Information Access Mgt09/12/9718 ENTITY: A person, place, object, event, or concept about which the organization wishes to maintain data. Must need to store data Must have at least two attributes Must have at least two records

Information Access Mgt09/12/9719 ENTITY TYPES classes of people, objects or concepts about which we wish to store data. l become tables in a new computer system. l Instances are rows l Attributes are columns

Information Access Mgt09/12/9720 ATTRIBUTE: A description or property of a given entity type. Must depend on the entity key alone Must contain information that we explicitly need Must have the same data type for all entity occurrences

Information Access Mgt09/12/9721 RELATIONSHIP:. A connection between entity instances in different entity classes Must specify what row connects with what row in associated tables Must not describe processing

Information Access Mgt09/12/9722 LOGICAL AND PHYSICAL COMPONENTS

Information Access Mgt09/12/9723 Discovering Entities Entities are normally described by NOUNS and ADJECTIVES Entities do not change anything. Entity occurrences are records, entity types are files. Reports are derived output and not entities.

Information Access Mgt09/12/9724 Discovering Entities Entities with only one attribute are usually modeled as attributes of another entity. Entities that have only one record are usually modeled as a set of parameters and not as files. Include only files (entity types) that are needed by a system. Extra entities require maintenance and space that can add considerably to the cost of a system.

Information Access Mgt09/12/9725 Converting a text description into an E-R model: 1.Review the conceptual description of the business area for nouns that describe the system. 2.Each entity type should have more than one potential instance. 3.Each entity type should have more than one attribute. 4.Each entity type should be relevant..

Information Access Mgt09/12/9726 DEVELOPING E-R KEYS Attributes are properties that describe features of entity types. Attributes are usually nouns that describe properties of entity instances (like address for a customer). Attributes become fields in a database.

Information Access Mgt09/12/9727 DEVELOPING E-R KEYS l Candidate keys are any attribute or combination of attributes that uniquely identify a record. The entire record is a candidate key. l A Primary Key is one candidate key. A good primary key is short and does not change over the life of the database.

Information Access Mgt09/12/9728 Keys Names are normally poor primary keys. They have multiple valid representations. Primary keys: 1.Should not change values over the life of the instance. 2.Should not have null values. 3.Should not be "intelligent keys". These are keys that also describe properties of the entity. 4.Should not be large composite keys.

Information Access Mgt09/12/9729 Not null vs nulls allowed Null values represent inapplicable, applicable but not known, and applicable but not present values. Primary keys cannot have null values. Null values are different from zeros or blanks

Information Access Mgt09/12/9730 TYPES OF ATTRIBUTES: Composite or Simple (atomic) Single valued or Multivalued (repeating group) Relational database models cannot represent multivalued attributes but objects and structured databases can. Repeating groups (sets of related multivalued attributes) usually represent entities or subclasses.

Information Access Mgt09/12/9731 Diagrams: Attributes Entity Key... Attribute

Information Access Mgt09/12/9732 Diagrams: Repeating Groups Course SectionNum

Information Access Mgt09/12/9733 E-R MODEL: Repeating attributes can be indicated on an E-R graph by using a double line around the bubble.. COMPUTER CODE: Repeating groups are stored differently in structured models (hierarchical or network) than in relational models. Derived Derived values cause data consistency problems and are not normally included in a database.

Information Access Mgt09/12/9734 PREMIERE PRODUCTS EXAMPLE The Premier Products Company is a wholesale hardware company that provides products to customers. Each customer is served by a salesman who processes orders. The salesmen is paid from commissions earned on each customer order. A customer places an order by calling the company and contacting the salesman. The salesman records the ordering person, products and quantity ordered.

Information Access Mgt09/12/9735 PREMIERE PRODUCTS: REPEATING GROUPS In the Premier Products Company each salesmen is paid from commissions earned on each customer order. A customer places an order by calling the company and contacting the salesman. The salesman records the ordering person, products and quantity ordered. The order consists of Customer data, Salesman data and a list of products, price, and quantity for the products that the customer wants delivered. The attributes {PRODUCT, PRICE, QUANTITY} constitute a repeating group.

Information Access Mgt09/12/9736 Example: Order ORDERPRODUCTPRICEQUANTITY 5103IRON SKILLET TOASTER IRON Each instance of an order has several order lines. Order lines {Description, Price, Quantity} are examples of repeating groups.

Information Access Mgt09/12/9737 Relationships A relationship is a connection between records in one table and those in another. l Instructor assigned to class (section) l Student enrolled in class (section)

Information Access Mgt09/12/9738 RELATIONSHIP. Does not describe processing or change any data. Relationship names should be passive (ordered by). CARDINALITYRefers to the number of records that a relationship connects to a given child record in a relationship. PARTICIPATION (Optionality) Refers to whether a record must exist in one table before a related one is inserted into another.

Information Access Mgt09/12/9739 Diagrams: 1:m Relationships Section Instructor CourseSection InstructorID

Information Access Mgt09/12/9740 Diagrams: m:n Relationships Section Student CourseSection StudentID Student-Section CourseSection StudentID

Information Access Mgt09/12/9741 Optionality (Referential Integrity) Records in a table that have a relationship with another table may be restricted by optionality requirements. l Relationship Optional l Relationship Mandatory (referential integrity enforced)

Information Access Mgt09/12/9742 Optionality 0 1 Optional (0 allowed) Mandatory (1 or more required)

Information Access Mgt09/12/9743 Optionality A constraint should be mandatory only if the relationship must be known whenever a record is first entered. Most relationships are optional.

Information Access Mgt09/12/9744 Maintaining Integrity If a parent record is deleted then an optionality relationships can be maintained in several ways l Cascade delete l Cascade update l Cascade null

Information Access Mgt09/12/9745 Data