Information Resources Management January 30, 2001.

Slides:



Advertisements
Similar presentations
Chapter 6: Entity-Relationship Model (part I)
Advertisements

Database Design The process of finding user requirement
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
Data Modeling using the Entity-Relationship (ER) Model
Modeling the Data: Conceptual and Logical Data Modeling
Entity Relationship Model
System Analysis - Data Modeling
Information Resources Management February 6, 2001.
Lecture Eleven Entity-Relationship Modelling
Information Resources Management February 13, 2001.
1–1 The E-R Model Prof. Sin-Min Lee Department of Computer Science.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Chapter 3)
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Entity-Relationship modeling Transparencies
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Entity-Relationship Modeling I The cautious seldom err. Confucius.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 7th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model.
the Entity-Relationship Model
Chapter 3: Modeling Data in the Organization
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.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Chapter 2: Modeling Data in the Organization
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
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.
Chapter 2 : Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
ITTelkom Entity Relationship Diagram (1) CS2343 Perancangan Basisdata Relasional.
Entity Relationship Modeling
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Data Modeling Using the Entity-Relationship (ER) Data Model.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Modeling Data in the Organization Muhammad Nasir
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Entity-Relationship Model
Overview of Entity‐Relationship Model
Entity-Relationship Diagram (ERD)
Entity Relation Model Tingting Zhang.
Presentation transcript:

Information Resources Management January 30, 2001

Agenda n Administrivia n Homework #1 n Entity-Relationship Modeling n Homework #3

Administrivia n Homework #2 n Book?

Homework #1 Results n Recommendations n Excel - 7; web - 1 n Access - 46; web - 37 n Oracle, SQL Server - 0; web - 15 n Scores

Entity-Relationship (E-R) Modeling n Why n Entities n Attributes n Relationships n “The Rules” n Examples

Why Do E-R Modeling n Early process n Much cheaper to fix - cost of changes n Understandability n Data is critical – needs to be correct n Complexity n Stability n Conversion to database

Cost of Changes

Entities n person, place, thing, event, concept n have attributes sufficient to distinguish them n NOUNS n Examples: employee, department, division, project, skill, location

Entity Type n A collection of entities with identical attributes not attribute values n An entity instance (or just instance) is a single occurrence of an entity type

Strong vs. Weak Entities n Entities can be weak or strong n default (if not specified) is strong n a weak entity can not exist without the existence of an instance of some other entity type n Examples: bank transaction (account), grade (student and course), dependent (employee)

Entity Name Entity (Strong) Entity (Weak)

Entity Examples Department Employee Account Transaction

Attributes n characteristics of entities n their values differentiate entities n two types: n identifiers (keys) – determine an instance of an entity (underlined) n descriptors – specify non-unique characteristics n Example: first name vs. student ID n NOUNS

Attributes n Simple - single value only n Composite - consists of other attributes n Multivalued - one or more of the same type of value n Derived - value can be calculated

Attributes Simple Multivalued Derived Composite Underlined if key

Attributes Employee EmployeeID NameAddress Street City State First Last Years Employed Assignment

Relationships n association between the instances of one or more entity types (usually two) n can have any number of occurrences or instances n described in terms of degree, connectivity, cardinality, and existence n VERBS

Relationship Examples n employee has skills n employee works in department n employee manages project

Relationship Examples Employee Skills Department Projecthasworks inmanages

Relationship Degree n Indicates number of entity types involved in a relationship n one - unary n two - binary n three - ternary n more - n-ary

Relationship Degree n Unary – relationship between two instances of the same entity type n Example: employee manages employees Employeemanages

Relationship Degree n Binary – relationship between one instance of each of exactly 2 entity types n Binary is the typical relationship degree Employee Department works in

Relationship Degree n Ternary – relationship between one instance of each of exactly 3 entity types n N-ary – relationship between one instance of each of N entity types EmployeeProjectusesSkills

Relationship Connectivity n Qualitatively describes how many entities of one type may be related to a single entity of another n Values are: “one” or “many” n Possibilities: one-to-one, one-to- many, many-to-many n Connectivity refers to the possibility, which may not occur for every entity of that entity type

Connectivity Examples n Employee is assigned a parking space (one-to-one) n Professor teaches a course (one-to- many) n Students takes courses (many-to-many)

Connectivity Examples (1) EmployeeProfessorStudentParking Space Course assignedteachestakes M NM

Connectivity Examples (2) EmployeeProfessorStudentParking Space Course assignedteachestakes

Relationship Cardinality n The binding upper and lower bounds on the number of participating entities in a relationship n Sometimes referred to as “business rules” n Example: Full-time professor must teach 3 courses ProfessorCourseteaches 1 3

Relationship Existence n Defines whether the existence of an entity requires (mandatory) or does not require (optional) the existence of a related entity n Examples n Driver has auto insurance (mandatory) n Tenant has renter’s insurance (optional)

n Connectivity, cardinality, and existence are often combined and simply described as relationship cardinality.

Existence Examples (1) EmployeeProfessorStudentParking Space Course assignedteachestakes M NM

Existence Examples (2) EmployeeProfessorStudentParking Space Course assignedteachestakes

Example 1 A hospital has a large number of registered physicians. Patients are admitted to the hospital by a physician. Any patient who is admitted must have exactly one admitting physician. A physician may optionally admit any number of patients. Once admitted, a given patient must be treated by at least one physician. A particular physician may treat any number of patients, or may not treat any. Whenever a patient is treated by a physician, the hospital records the details of the treatment.

Example 2 A company has a number of employees. The company also has several projects. Each employee may be assigned to one or more projects, or may not be assigned to a project. A project must have at least one employee assigned, and may have any number of employees assigned. An employee’s billing rate may vary by project, and the company wishes to record the billing rate for each employee when assigned to a particular project.

Example 3 n A real estate firm lists property for sale. n The firm has a number of sales offices in several states n Each sales office is assigned one or more employees. An employee must be assigned to only one sales office. n For each sales office, there is always one employee assigned to manage that office. An employee may manage only the sales office to which she is assigned. n The firm lists property for sale. n Each unit or property must be listed with one (and only one) of the sales offices. A sales office may have any number of properties listed, or may have no properties listed. n Each unit of property has one or more owners. An owner may own more than one unit of property. An attribute of the relationship between property and owner is percent owned.

Example 4 n Construct an E-R diagram for a bank database that shows the basic relationships among customers, checking accounts, savings accounts, loans, loan officers, and the bank branches where various accounts and loans are taken out. You also want to keep track of transactions on accounts and loans, and maintain the current balance in each account and the balance of the loan.

Homework #3 n E-R Modeling n Two weeks n Do #1 now n Review #2 and #3 n Computer generated n Visio, Word, SilverRun