Database Design. Seema Sirpal Delhi University Computer Centre

Similar documents
Database Management Systems

Databases What the Specification Says

Foundations of Business Intelligence: Databases and Information Management

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

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

How To Write A Diagram

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

TIM 50 - Business Information Systems

The Entity-Relationship Model

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

Chapter 6 FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Learning Objectives

Database Design Process

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

Database Design Process

DATABASE INTRODUCTION

Fundamentals of Database System

Course MIS. Foundations of Business Intelligence

Foundations of Business Intelligence: Databases and Information Management

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

SCHEMAS AND STATE OF THE DATABASE

Foundations of Information Management

Lecture 12: Entity Relationship Modelling

Foundations of Business Intelligence: Databases and Information Management

Data Modelling and E-R Diagrams

Databases and Information Management

Data Modeling Basics

Designing a Database Schema

Foundations of Business Intelligence: Databases and Information Management

Introduction to normalization. Introduction to normalization

Benefits of Normalisation in a Data Base - Part 1

Chapter 6 8/12/2015. Foundations of Business Intelligence: Databases and Information Management. Problem:

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

Relational Database Concepts

æ A collection of interrelated and persistent data èusually referred to as the database èdbèè.

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

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:

Database Design Methodology

Foundations of Business Intelligence: Databases and Information Management

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

7.1 The Information system

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

Designing Databases. Introduction

Alexander Nikov. 5. Database Systems and Managing Data Resources. Learning Objectives. RR Donnelley Tries to Master Its Data

Chapter 6. Foundations of Business Intelligence: Databases and Information Management


n Assignment 4 n Due Thursday 2/19 n Business paper draft n Due Tuesday 2/24 n Database Assignment 2 posted n Due Thursday 2/26

14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

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

Lecture Notes INFORMATION RESOURCES

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

CDC UNIFIED PROCESS PRACTICES GUIDE

ER modelling, Weak Entities, Class Hierarchies, Aggregation

12 File and Database Concepts 13 File and Database Concepts A many-to-many relationship means that one record in a particular record type can be relat

COMHAIRLE NÁISIÚNTA NA NATIONAL COUNCIL FOR VOCATIONAL AWARDS PILOT. Consultative Draft Module Descriptor. Relational Database

Animated Courseware Support for Teaching Database Design

RELATIONAL DATABASE DESIGN. Basic Concepts

Entity Relationship Diagram

The 3 Normal Forms: Copyright Fred Coulson 2007 (last revised February 1, 2009)

Lost in Space? Methodology for a Guided Drill-Through Analysis Out of the Wormhole

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University

Uses Crows feet notation for ER Diagrams in ERwin

City University of Hong Kong. Information on a Course offered by Department of Computer Science with effect from Semester A in 2014 / 2015

Overview. Physical Database Design. Modern Database Management McFadden/Hoffer Chapter 7. Database Management Systems Ramakrishnan Chapter 16

Fundamentals of Database Design

DATABASE MANAGEMENT SYSTEMS. Question Bank:

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

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

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

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

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

ACSG 552 Assignment #1 Spring 2009 Diana Oboikovitz. Due in class on Thursday, Jan. 22:

IT2305 Database Systems I (Compulsory)

Database Design Final Project

Foundations of Information Management

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

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

This chapter deals with the database approach to

Fundamental Concepts of Relational Theory Technical Brief

Toad Data Modeler - Features Matrix

Doing database design with MySQL

Relational Databases. Christopher Simpkins

Credit value: 10 Guided learning hours: 60

Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms.

Chapter 14: Databases and Database Management Systems

Databases in Organizations

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

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

6NF CONCEPTUAL MODELS AND DATA WAREHOUSING 2.0

DATA MODELING AND RELATIONAL DATABASE DESIGN IN ARCHAEOLOGY

XV. The Entity-Relationship Model

MODULE 8 LOGICAL DATABASE DESIGN. Contents. 2. LEARNING UNIT 1 Entity-relationship(E-R) modelling of data elements of an application.

2. Conceptual Modeling using the Entity-Relationship Model

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

Inventory Management System

Database Design Methodology

IT2304: Database Systems 1 (DBS 1)

- Eliminating redundant data - Ensuring data dependencies makes sense. ie:- data is stored logically

Basic and Advanced Database Courses

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives

Transcription:

Database Design Seema Sirpal Delhi University Computer Centre

Database Design Requirement Formulation and Analysis - Collection and Documentation of Requirement - Analysis of Requirement Conceptual Design - Data Modeling First Level E-R Modeling Second Level - Normalization Physical Design & Implementation

Requirement Analysis The Objective is to answer the following questions: What are user-views of the data (present & future)? What data elements (or attributes) are required in these user-views? What are entities and their primary keys? What are the operational requirements reg. Security, Integrity etc.?

Conceptual Design The relationship between the collection of data in a system may be graphically represented using data modeling. It provides a Simplified approach to the structured design of the complex system. Data Modeling is achieved in two levels: ER Modeling Normalization

ER Diagram Entity Relationship Diagrams (ERDs) illustrate the logical structure of databases. It uses three basic concepts Entities Their Attributes The Relationships that exist between the entities

ER Diagram Graphical notations for ER Diagram : Entity An entity is an object or concept about which you want to store information. Attributes Attributes are the properties or characteristics of an entity. Key attribute A key attribute is the unique, distinguishing characteristic of the entity. For example, an employee's social security number might be the employee's key attribute.

ER Diagram Graphical notations for ER Diagram : Relationships Relationships illustrate how two entities share information in the database structure. Cardinality Cardinality specifies how many instances of an entity relate to one instance of another entity.

ER Diagram

ER Diagram Example An Organization has employees assigned to specific departments. The employees may work on several projects at the same time. The project uses parts which are supplied by different suppliers, and stored in various warehouses.

ER Diagram Process Identify the entities that your database must represent Determine the cardinality relationships among the entities and classify them as one of o One-to-one o One-to-many o Many-to-many Draw the entity-relationship diagram Determine the attributes of each entity Define the (unique) primary key of each entity

From E-R Model to Database Design Entities with one-to-one relationships should be merged into a single entity Each remaining entity is modeled by a table with a primary key and attributes, some of which may be foreign keys One-to-many relationships are modeled by a foreign key attribute in the table representing entity on the "many" side of the relationship Many-to-many relationships among two entities are modeled by a third table that has foreign keys that refer to the entities. These foreign keys should be included in the relationship table's primary key, if appropriate Commercially available tools can automate the process of converting a E-R model to a database schema

Normalization Refinement of E-R Model Improves database design Ensures minimum redundancy of data An Un-normalized Data Structure contains redundant and disorganized data which need to be organized, by dividing the data over several tables to avoid redundancy. This is achieved by going through the process of Normalization.

Normalization Example Invoice No. Invoice Date Order No. Challan No. Customer No. Customer Name Item No. Item Desc. Qty Sold Rate Discount Invoice Value This table presents several difficulties in Insertion, Updation, Deletion of Fields.

Normalization First Normal Form Steps in Normalization Identify repeating groups of fields Remove repeating groups to a separate table Identify the keys for the table Key of parent table is brought as part of the concatenated key of the second table A Table is in 1NF when it contains no repeating groups.

Normalization First Normal Form Invoice Table - Invoice No. - Invoice Date - Order No. - Challan No. - Cust. No. - Cust Name - Invoice Value Invoice Items - Invoice No, - Item No. - Item description - Qty Sold - Rate - Discount

Normalization Second Normal Form Check if all fields are dependent on the whole key Remove fields that depend on part of the key Group partially-dependent fields as a separate table Name the tables Identify key(s) to the table(s) A Table is in 2NF if all its non-key fields are fully dependent on the whole key.

Normalization Second Normal Form Invoice Table Invoice Items - Invoice No. - Item No. - Qty sold - Discount Item Table - Item No. - Item description - Rate

Normalization Third Normal Form Remove fields that depend on other non-key fields Remove fields that can be calculated or derived from logic. Group interdependent fields as separate tables. A Table is in 3NF if all the non-key fields of the table are independent of all other non-key fields of the same table.

Normalization Third Normal Form Invoice Table - Invoice No. - Invoice Date - Order No. - Challan No. - Cust. No. - Invoice Value Customer Table - Cust No. - Cust name Invoice Items - Invoice No. - Item No. - Qty sold - Discount Item Table - Item No. - Item description - Rate

Features of Oracle9i An overview of the changes that have been made to Oracle 9i to improve the following technical aspects :- database performance ease of management scalability security availability Application areas: Internet content management ecommerce integration packaged applications Business Intelligence

Features of Oracle9i INTERNET CONTENT MANAGEMENT Oracle 9i can be used for the storage and manipulation of many different types of data. The new features are:- - Internet File Store improvements - searching/indexing of multimedia and XML data - support for collaborative projects via the creation of shared workspaces, allowing multiple versions of content to exists simultaneously - ability to create applications to make use of location information of clients and services (e.g. for use with mobile phones) ECOMMERCE INTEGRATION The enhancements Oracle 9i provides in this area are: - pre-built objects for creating store fronts, exchanges and portals to provide a faster time-tomarket and enable easier integration with the back-end - support for standard messaging formats to enable faster integration of the store front with the back-end and external systems