Database Design Principles – Lecture 3

Slides:



Advertisements
Similar presentations
Chapter # 4 BIS Database Systems
Advertisements

the Entity-Relationship (ER) Model
Database Systems: Design, Implementation, and Management Tenth Edition
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Data Modeling 1 Yong Choi School of Business CSUB.
Entity-Relationship Design
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
DBS201: Entity Relationship Diagram
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
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.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
DBS201: Relational Databases. Agenda Entity Relationship Model Discovering Attributes Identifying Keys Defining Relationships Relational Model.
Database Systems: Design, Implementation, and Management Ninth Edition
Chapter 5 Entity Relationship (ER) Modelling
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Database Design – Lecture 3 Conceptual Database Design.
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.
Description and exemplification of entity-relationship modelling.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
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.
Database Design – Lecture 6 Moving to a Logical Model.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
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 ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
C_ITIP211 LECTURER: E.DONDO. Unit 4 : DATA MODELING.
Data Modeling Using the Entity- Relationship (ER) Model
Entity Relationship Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
CS311 Database Management system
Database Design – Lecture 4
Database Management system
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Review of Week 1 Database DBMS File systems vs. database systems
Entity-Relationship Diagram (ERD)
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Database Design Principles – Lecture 3 Conceptual Database Design – identifying entities

Lecture Objectives Discovering Entities

Discovering Entities Using a top down approach, identify the major ‘things’ a business needs to store information about == entities Document these in a conceptual model Model will show the following: Entity – something about which someone wants to store data; typically a person, a place, a thing, a concept, or an event

Discovering Entities Requirements gathering – focusing on data: Interview end users Review existing documentation (forms, reports) Brainstorming Overview of the business Questionnaires Review system documentation Functional/non-functional requirements Work flow diagrams Data flow diagrams Use case descriptions

Discovering Entities Use a technique like ‘noun filtering’ Look for nouns that describe data Similar nouns can be grouped into an entity Some nouns will become attributes

Discovering Entities Generally, nouns translate into entities

Sample Conceptual Model - ERD This is a preliminary conceptual model. Model shows entities without attributes or relationships.

Entity Corresponds to a table and not to a row in the relational environment Can be strong or weak Entity name is a noun

Entity Entity can be strong or weak Strong Entity (existence independent) Does not depend on the existence of some other entity to exist Each entity occurrence of a strong entity is uniquely identifiable using the primary key attributes of that entity type Weak relationship (non-identifying) Can identify each Plan based on a plan code and can identify each Client by a client code. Therefore, both are strong entities.

Entity Entity can be strong or weak Weak Entity (existence dependent) Does depend on the existence of some other entity in order to exist Cannot identify each occurrence of the Dependent. We can only Identify the Dependent by Knowing the Parent, through the primary key of the Parent. Can identify each parent based on a primary key (therefore it is a strong entity type) and can only identify each dependent only by knowing the Parent. Therefore dependent is a weak entity.

Discovering Relationships Verbs translate into relationships among entities Relationships are bi-directional Need to know the following: Optionality Cardinality

Relationship Participation Optional participation One entity occurrence does not require corresponding entity occurrence in particular relationship Mandatory participation One entity occurrence requires corresponding entity occurrence in particular relationship

Relationship Participation

Relationship Participation

The Entity Relationship Model Widely accepted and adapted graphical tool for data modeling Introduced by Chen in 1976 Graphical representation of entities and their relationships in a database structure

The Entity Relationship Model

The Entity Relationship Model

In Summary Steps to create a conceptual model Identify entities Identify relationships between entities taking into consideration the business rules

Discovering Business Rules Constrain some part of the business For example: An employee can only choose one benefit plan An employee may or may not have dependents An employee may opt out of a benefit

Discovering Business Rules Sources of Business Rules: Company managers Policy makers Department managers Written documentation Procedures Standards Operations manuals Direct interviews with end users

Summary Entity relationship (ER) model Uses ERD to represent conceptual database as viewed by end user ERD’s main components: Entities Relationships Includes connectivity and cardinality notations Connectivities and cardinalities are based on business rules In ERD, M:N relationship is valid at conceptual level

Create an ERD for the following: A department employs many employees, but each employee is employed by one department. A division operates many departments, but each department is operated by one division. An employee may be assigned to many projects, and a project may have many employees assigned to it.

Create an ERD for the following: Identify the entities Draw the ERD showing relationships A Librarian wishes to make inquiries about borrowing activity within a library. The librarian can inquire about specific books borrowed by a customer using either their account or name. An inquiry can also be made by book category (such as fantasy, children’s, reference, etc) or an inquiry can be made that will look at the titles of a specific book.

Create an ERD for the following: Identify the entities Draw the ERD showing relationships Multiple Real Estate Listing Service (MRELS) is a company that has offices throughout Southern Ontario. These offices have a number of Real Estate agents working for them. MRELS deals in both residential and commercial real estate. Agents work with customers to get a listing or to find a listing for a customer. A listing will include the address and the type of property (residential or commercial), square footage, annual taxes and closing date. If it is a residential property, it will include number of bedrooms, number of bathrooms, special features (central air, heated by gas or oil, radiators or forced air, for instance). For a commercial property, it will include number of offices as well as number of docking bays (where trucks back up to be loaded/unloaded).