Database Design Process



Similar documents
Database Design Process

The Entity-Relationship Model

Database Management Systems

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model

Introduction to Database Systems CS4320/CS5320. CS4320/4321: Introduction to Database Systems. CS4320/4321: Introduction to Database Systems

Lecture 12: Entity Relationship Modelling

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

Concepts of Database Management Seventh Edition. Chapter 6 Database Design 2: Design Method

Database Design Process. ER Model. Goals. Relational Model. SQL - The Language of Databases. IT420: Database Management and Organization

A brief overview of developing a conceptual data model as the first step in creating a relational database.

Using Entity-Relationship Diagrams To Count Data Functions Ian Brown, CFPS Booz Allen Hamilton 8283 Greensboro Dr. McLean, VA USA

Entity - Relationship Modelling

Foundations of Information Management

Chapter 2: Entity-Relationship Model. E-R R Diagrams

XV. The Entity-Relationship Model

SCHEMAS AND STATE OF THE DATABASE

IV. The (Extended) Entity-Relationship Model

Modern Systems Analysis and Design

CSC 742 Database Management Systems

Data Modeling: Part 1. Entity Relationship (ER) Model

Conceptual Design Using the Entity-Relationship (ER) Model

Data Modeling Basics

Chapter 2: Entity-Relationship Model

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model

Animated Courseware Support for Teaching Database Design

How To Write A Diagram

Unit 2.1. Data Analysis 1 - V Data Analysis 1. Dr Gordon Russell, Napier University

7.1 The Information system

Entity-Relationship Model

Unit 5: Object-Role Modeling (ORM)

The Entity-Relationship Model

2. Conceptual Modeling using the Entity-Relationship Model

Entity Relationship Diagram

The Entity-Relationship Model

Data Analysis 1. SET08104 Database Systems. Napier University

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER

Foundations of Information Management

Data Modelling and E-R Diagrams

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Designing a Database Schema

Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant

Lecture Notes INFORMATION RESOURCES

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Uses Crows feet notation for ER Diagrams in ERwin

RELATIONSHIP STRENGTH

We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded

Fundamentals of Database Design

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Chapter 4. Entity: an object that is involved in the enterprise

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst

ComponentNo. C_Description UnitOfMeasure. C_Quantity

1 Class Diagrams and Entity Relationship Diagrams (ERD)

Conceptual Design: Entity Relationship Models. Objectives. Overview

Lesson 8: Introduction to Databases E-R Data Modeling

Relational Schema Design

Business Definitions for Data Management Professionals

Preview DESIGNING DATABASES WITH VISIO PROFESSIONAL: A TUTORIAL

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

NATIONAL OPEN UNIVERSITY OF NIGERIA

DATABASE MANAGEMENT SYSTEMS. Question Bank:

Object-Oriented Data Modeling

DATABASE INTRODUCTION

BİL 354 Veritabanı Sistemleri. Entity-Relationship Model

OVERVIEW 1.1 DATABASE MANAGEMENT SYSTEM (DBMS) DEFINITION:-

NATIONAL OPEN UNIVERSITY OF NIGERIA SCHOOL OF SCIENCE AND TECHNOLOGY COURSE CODE: CIT 743 COURSE TITLE: INTRODUCTION TO DATABASE MANAGEMENT SYSTEM

A Comparative Analysis of Entity-Relationship Diagrams 1

Relational Database Concepts

The E-R èentity-relationshipè data model views the real world as a set of basic objects èentitiesè and

Database Fundamentals: 1

Requirement Analysis & Conceptual Database Design. Problem analysis Entity Relationship notation Integrity constraints Generalization

Designing Databases. Introduction

Databases and BigData

Chapter 10 Practical Database Design Methodology and Use of UML Diagrams

Doing database design with MySQL

ER modelling, Weak Entities, Class Hierarchies, Aggregation

SOFTWARE ENGINEERING IT 0301 Semester V B.Nithya,G.Lakshmi Priya Asst Professor SRM University, Kattankulathur. School of Computing, Department of IT

Data Modeling with Entity-Relationship Diagrams

AS LEVEL Computer Application Databases

Database Systems. Session 3 Main Theme. Enterprise Data Modeling Using The Entity/Relationship (ER) Model. Dr. Jean-Claude Franchitti

Pan-Canadian Primary Health Care Electronic Medical Record Content Standard, Version 3.0

A Short Tutorial on Using Visio 2010 for Entity-Relationship Diagrams

Modeling: Operational, Data Warehousing & Data Marts

Data Modeling. Database Systems: The Complete Book Ch ,

Chapter 10. Practical Database Design Methodology. The Role of Information Systems in Organizations. Practical Database Design Methodology

BCS Certificate in Data Management Essentials

DATABASE REVERSE ENGINEERING

IT2304: Database Systems 1 (DBS 1)

Exercise 1: Relational Model

Database Design and Database Programming with SQL - 5 Day In Class Event Day 1 Activity Start Time Length

Lecture 6. SQL, Logical DB Design

IT2305 Database Systems I (Compulsory)

Converting E-R Diagrams to Relational Model. Winter Lecture 17

Database IST400/600. Jian Qin. A collection of data? A computer system? Everything you collected for your group project?

A Tutorial on Quality Assurance of Data Models 1. QA of Data Models. Barry Williams. tutorial_qa_of_models.doc Page 1 of 17 31/12/ :18:36

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1

Transcription:

Database Design Process Entity-Relationship Model From Chapter 5, Kroenke book Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Problem: University Database The College Report Divisions (Colleges) Departments Faculty Students 1

The Department Report The Department Major Report The Student Acceptance Letter Conceptual Design Overview Entity-Relationship (ER) Model What are the entities and relationships for given problem? What information about these entities and relationships should we store? What are the integrity constraints or business rules that hold? 2

Entities Something that can be identified and the users want to track Entity class Entity instance There are usually many instances of an entity in an entity class. Attributes Attributes: describe the characteristics of an entity Entity instances: Same attributes Different values Identifiers Identifiers = attributes that identify entity instances Composite identifiers: Identifiers that consist of two or more attributes Relationships Relationships: associations between entities No attributes Relationship degree 3

Cardinality Cardinality means count - a number Maximum cardinality Minimum cardinality Maximum Cardinality Maximum cardinality: maximum number of entity instances that can participate in a relationship One-to-One [1:1] One-to-Many [1:N] Many-to-Many [N:M] Minimum Cardinality Minimum cardinality: minimum number of entity instances that must participate in a relationship. zero [0] optional one [1] mandatory HAS-A Relationships Previous relationships: HAS-A relationships: Each entity instance has a relationship with another entity instance: An EMPLOYEE has one BADGE A BADGE has an assigned EMPLOYEE. 4

Data Modeling Notation: ERwin Class Exercise Give examples of the following relationships: Maximum cardinality: One-to-One One-to-Many Many-to-Many Minimum cardinality Optional-Optional Mandatory-Optional Mandatory-Mandatory ID-Dependent Entities ID-dependent entity: entity (child) whose identifier includes the identifier of another entity (parent) Example: BUILDING : APARTMENT Minimum cardinality from the IDdependent entity to the parent is always one ID-Dependent Entities A solid line indicates an identifying relationship 5

Weak Entities Weak Entities (Continued) A weak entity is an entity whose existence depends upon another entity. All ID-Dependent entities are considered weak. But there are also non-id-dependent weak entities. The identifier of the parent does not appear in the identifier of the weak child entity. A dashed line indicates a nonidentifying relationship Weak entities must be indicated by an accompanying text box in Erwin There is no specific notation for a nonidentifying but weak entity relationship ID-Dependent and Weak Entities ID-Dependent entity: Identifier depends (includes) another identifier Identifying relationship Ex: BUILDING:APARTMENT Weak entity: existence depends on another entity Ex: MODEL:CAR ID-Dependent Weak Weak does NOT imply ID-Dependent Subtype Entities Subtype entity: special case of a supertype entity: STUDENT : UNDERGRADUATE or GRADUATE Supertype: all common attributes [discriminator attribute] Subtypes: specific attributes 6

Subtypes: Exclusive or Inclusive Subtypes: Exclusive or Inclusive If subtypes are exclusive, one supertype relates to at most one subtype. If subtypes are inclusive, one supertype can relate to one or more subtypes. Subtypes: IS-A relationships IS-A relationships: a subtype IS A supertype. Supertype and subtypes identifiers are identical Use subtypes if Have attributes that make sense only for subtypes Want to specify a relationship only for subtype or supertype ER Summary Entities, attributes, identifiers HAS-A Relationships Degree: binary, ternary Maximum cardinality Minimum cardinality ID-dependent entities; identifying relationships IS-A Relationships Inclusive, Exclusive 7

Class Exercise Draw ER diagram for a database used to manage IT360 class (at least 3 entities) Specify entities, attributes, identifiers Specify relationships Specify cardinalities for relationships Class Exercise Drugwarehouse.com has offered you a free lifetime supply of prescription drugs (no questions asked) if you design its database schema. Given the rising cost of health care, you agree. Here is the information that you gathered: Patients are identified by their SSN, and we also store their names and age Doctors are identified by their SSN, and we also store their names and specialty Each patient has one primary care physician Each doctor has at least one patient 8