Entity-Relationship Design

Slides:



Advertisements
Similar presentations
Entity Relationship (ER) Modeling
Advertisements

Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
Database Systems: Design, Implementation, and Management Tenth Edition
Database Design Concepts Info1408
Transforming Data Models into Database Designs
Database Design & ER Diagrams
Entity-Relationship Design
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Entity Relationship Diagram (ERD) 22 February 2011.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Concepts and Terminology Introduction to Database.
Database Design Principles – Lecture 3
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
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.
Description and exemplification of entity-relationship modelling.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Database Design – Lecture 4 Conceptual Data Modeling.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Entity Relationship Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
CSIS 115 Database Design and Applications for Business
Logical Database Design and the Rational Model
Business System Development
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA
Tables & Relationships
Chapter 5 Database Design
TMC2034 Database Concept and Design
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity-Relationship Model
Tables and Their Characteristics
Database Design – Lecture 4
Chapter 7 Entity-Relationship Model
Data Models.
Outline of the ER Model By S.Saha
Lecture 2 The Relational Model
CSCI-100 Introduction to Computing
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Chapter 9 Designing Databases
Introduction lecture1.
Data Modelling Introduction
ERD’s REVIEW DBS201.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Databases and Structured Files: What is a database?
Data Modeling for Database Design 2
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
Review of Week 1 Database DBMS File systems vs. database systems
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS
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
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
Guide to Modeling Keys to E-R diagrams.
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Guide to Modeling Keys to E-R diagrams.
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Presentation transcript:

Entity-Relationship Design Information Level Design 8/25/98 and 8/337/98

TOP DOWN DATA ANALYSIS Computer systems are extremely complicated and cannot be developed without careful planning. The most common MIS is the Systems Development Life Cycle. This approach is to build a model of the information system based on the objectives and goals it must meet. This is called top down modeling.

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.

Entity-Relationship Model A logical representation of the data of an organization or business area in graphical form

Enterprise E-R Diagram Employee Customer Job

Data Flow Diagram Context Diagram Request Customer Confirm- ation Babysitter Information System Availability Assignment Employee

Data Flow Diagram Level 1 Request Assignment Availability Confirm- ation 1. Assign Employee Avail Times 2. Record Avail- ability New Current Avail Times Job Assign D1 | Customer D2 | Employee D3 | Jobs

Communications Model A representation of the location at which data is stored and processed and the communications links that connect them.

Entity Relationship Models 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

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

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

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

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

LOGICAL AND PHYSICAL COMPONENTS

Narrative Description The conceptual modeling process starts with a narrative description of the process. This is a direct, active depiction of what the system should do. This is the basis of the initial data and process models.

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.

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.

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..

Relationships A relationship is a connection between records in one table and those in another. Instructor assigned to class (section) Student enrolled in class (section)

RELATIONSHIP. Does not describe processing or change any data. Relationship names should be passive (ordered by). CARDINALITY Refers 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.

Diagrams: 1:m Relationships InstructorID Section CourseSection Instructor InstructorID

Diagrams: m:n Relationships CourseSection StudentID Section Student-Section CourseSection Student StudentID

Optionality (Referential Integrity) Records in a table that have a relationship with another table may be restricted by optionality requirements. Relationship Optional Relationship Mandatory (referential integrity enforced)

Optionality Optional (0 allowed) Mandatory (1 or more required) 1

Optionality A constraint should be mandatory only if the relationship must be known whenever a record is first entered. Most relationships are optional.

Maintaining Integrity If a parent record is deleted then an optionality relationships can be maintained in several ways Cascade delete Cascade update Cascade null

Data