Database Management Systems



Similar documents
Database Design Process

Database Design Process

Lecture 12: Entity Relationship Modelling

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

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

XV. The Entity-Relationship Model

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

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

Designing a Database Schema

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

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

Foundations of Information Management

Entity-Relationship Model

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

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

SCHEMAS AND STATE OF THE DATABASE

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

IV. The (Extended) Entity-Relationship Model

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

2. Conceptual Modeling using the Entity-Relationship Model

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

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

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER

Entity Relationship Diagram

Data Analysis 1. SET08104 Database Systems. Napier University

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

Exercise 1: Relational Model

Entity - Relationship Modelling

ER modelling, Weak Entities, Class Hierarchies, Aggregation

Lesson 8: Introduction to Databases E-R Data Modeling

Lecture Notes INFORMATION RESOURCES

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

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

Foundations of Information Management

The Entity-Relationship Model

Chapter 2: Entity-Relationship Model

Conceptual Design: Entity Relationship Models. Objectives. Overview

7.1 The Information system

Information Systems Analysis and Design CSC John Mylopoulos Database Design Information Systems Analysis and Design CSC340

Data Modelling and E-R Diagrams

The Entity-Relationship Model

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

Modern Systems Analysis and Design

EXTENDED LEARNING MODULE A

The Entity-Relationship Model

Designing Databases. Introduction

Introduction to Computing. Lectured by: Dr. Pham Tran Vu

Data Modeling Basics

DATABASE INTRODUCTION

Developing Entity Relationship Diagrams (ERDs)

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

OVERVIEW 1.1 DATABASE MANAGEMENT SYSTEM (DBMS) DEFINITION:-

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

Uses Crows feet notation for ER Diagrams in ERwin

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

CSC 742 Database Management Systems

Once the schema has been designed, it can be implemented in the RDBMS.

Welcome to the Data Analytics Toolkit PowerPoint presentation on EHR architecture and meaningful use.

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

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

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

Data Modeling with Entity-Relationship Diagrams

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

Chapter 5 Foundations of Business Intelligence: Databases and Information Management

1 Class Diagrams and Entity Relationship Diagrams (ERD)

DATABASE MANAGEMENT SYSTEMS. Question Bank:

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

Database Fundamentals: 1

EXAMINATIONS 2008/2009 ACADEMIC YEAR FOR THE DEGREE OF BACHELOR OF BUSINESS MANAGEMENT AND INFORMATION TECHNOLOGY

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

Database Design and the E-R Model

Database Design Process. Databases - Entity-Relationship Modelling. Requirements Analysis. Database Design

How To Write A Diagram

AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL

CA IDMS. Database Design Guide. Release , 2nd Edition

5.5 Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall. Figure 5-2

Basic Concepts. Chapter A: Network Model. Cont.) Data-Structure Diagrams (Cont( Data-Structure Diagrams. General Relationships. The DBTG CODASYL Model

AS LEVEL Computer Application Databases

Relational Database Concepts

Access Tutorial 3: Relationships

An Example: Video Rental System

TIM 50 - Business Information Systems

Relational Databases. Christopher Simpkins

SQL AND DATA. What is SQL? SQL (pronounced sequel) is an acronym for Structured Query Language, CHAPTER OBJECTIVES

Documentation techniques and databases

Conceptual Design Using the Entity-Relationship (ER) Model

Nearly every book, article, or presentation about FRBR has an explication THE ENTITY- RELATION MODEL SIX

Databases and BigData

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3

CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL

Doing database design with MySQL

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

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

B2.2-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

Basic and Advanced Database Courses

Unit 5: Object-Role Modeling (ORM)

Foundations of Business Intelligence: Databases and Information Management

Foundations of Business Intelligence: Databases and Information Management

Transcription:

Database Management Systems Database Design (1) 1

Topics Information Systems Life Cycle Data Base Design Logical Design Physical Design Entity Relationship (ER) Model Entity Relationship Attributes Cardinality of Relationships 2

Information System Life Cycle 3

Database Design Database design is the process of producing a detailed data model of a database. Database design includes: Determining data to be stored Determining main entities and their attributes Determining relationships between entities Designing a suitable model to store them 4

Logical and Physical Design Logical design is about gathering requirements and converting those requirements into a model. Logical design includes the activities and the relationships between units. Physical design is the process of converting the logical model into database tables. 5

The Entity Relationship Model The E-R (entity-relationship) data model views the real world as a set of basic objects (entities) and relationships among these objects. E-R is used for logical design of a database 6

Entities An entity is an object that exists and is distinguishable from other objects. For instance, John Harris with S.S.N. 890-12- 3456 is an entity, as he can be uniquely identified as one person in the universe. An entity may be a physical object such as a house or a car, or a concept such as a customer transaction or order. 7

Graphical Model of Entities 8

Examples of Entities in the E-R Model CITY, DEPARTMENT, EMPLOYEE, PURCHASE and SALE are examples of entities in a commercial application STUDENT, COURSE, INSTUCTOR are example entities of university application BOOK, MAGAZINE, EMPLOYEE, CLIENT are example entities of library application 9

Relationships A relationship is an association between several entities. For example, consider the two entity sets customer and account. The relationship CustAcct defines the relation between customers and their accounts. 10

Example Relationships Each student takes some courses each semester. Therefore TakesCourse is the relationship between student and course entities 11

Graphical Model of Relationships 12

Example Entity-Relationships 13

Recursive Relationships If a relation connects an entity to itself, it is called recursive relationship. e.g. An Employee is a colleague for another employee A person can be the father of another person. Both father and child are from the same entity set. 14

Example for Recursive Relationships 15

Ternary Relationships If a relation connects three entities to each other, it is called a ternary relationship. e.g. A client borrows a book from a library entities are: Client, Book, Library Book belongs to Library Client borrows the Book 16

Ternary Relationship 17

Attributes Attributes describe the properties of entities or relationships. e.g. Surname, Salary and Age are possible attributes of the EMPLOYEE entity. Semester, Grade are attributes of relationship Takes Course 18

Example 19

Composite Attributes If an attribute contains many sub-parts it is called a composite attribute E.g. An address is made of Street, House Number, Post Code, 20

An Entity-Relationship Schema 21

Cardinality of Relationship Cardinality shows how many entities participate in a relationship. Example 1. : many students are taking ceng 356 A student may also take many courses Example 2. : each student number is given to only one student, each student has only one number 22

Relationship Cardinality Types A relationship can be: One-to-one (Student Number) One-to-many (Department Student) Many-to-many (Student Course ) 23

Optional Relationships Some members of an entity set may have no relationship with other entity members. e.g. A library client may borrow zero or many books but a book can be borrowed by only one client. Optional relationship is shown as follows: 24

Cardinality of Relationship Example 25

Identifier Identifiers are attributes that help us to uniquely identify an entity. Identifiers are given with filled in circles. 26

Graphical Symbols for E-R Constructs 27

Summary Database design is the process of modeling data in an information system. E-R model is a method for database design. E-R model is based on finding entities in a system and the relationships between them. E-R model is converted into tables in physical design. 28

Questions? 29