Database Design.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Modeling the Data: Conceptual and Logical Data Modeling
Monash University Week 7 Data Modelling Relational Database Theory IMS1907 Database Systems.
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
Entity Relationship Diagrams
Chapter 17 Designing Databases
Information Technology in Organizations
Business Driven Technology Unit 2 Exploring Business Intelligence Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution.
System Analysis and Design
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
1 C omputer information systems Design Instructor: Mr. Ahmed Al Astal IGGC1202 College Requirement University Of Palestine.
Module Title? DBMS E-R Model to Relational Model.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
Database Normalization Lynne Weldon July 17, 2000.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Designing Databases Systems Analysis and Design, 7e Kendall & Kendall 13 © 2008 Pearson Prentice Hall.
Organizing Data and Information. What is Data?? Numbers, characters, images, or other method of recording, in a form which can be assessed by a human.
5. Database Design Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis Using Spreadsheets 1.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved CHAPTER 6 DATABASES AND DATA WAREHOUSES CHAPTER 6 DATABASES AND DATA WAREHOUSES.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
Microsoft Access 2010 Chapter 11 Database Design.
Logical Design 12/10/2009GAK1. Learning Objectives How to remove features from a local conceptual model that are not compatible with the relational model.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Designing Databases Systems Analysis and Design, 8e Kendall & Kendall 13.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Copyright © 2013 Dorling Kindersley (India) Pvt. Ltd. Management Information Systems: Managing the Digital Firm, 12eAuthors: Kenneth C. Laudon and Jane.
Databases and DBMSs Todd S. Bacastow January
Understanding Data Storage
Revised: 2 April 2004 Fred Swartz
Event-driven accounting information systems
Modern Systems Analysis and Design Third Edition
Chapter 4 Relational Databases
Design a Relational Database Identify Database Purpose
Databases and Information Management
Chapter 9 Designing Databases
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Data Modelling Introduction
Normalization Referential Integrity
Relational Database Model
CHAPTER SIX OVERVIEW SECTION 6.1 – DATABASE FUNDAMENTALS
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
Databases and Information Management
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 17 Designing Databases
Chapter 4 The Relational Model Pearson Education © 2009.
Systems Analysis and Design, 7e Kendall & Kendall
Databases and Information Management
Databases and Information Management
Shelly Cashman: Microsoft Access 2016
Database Design Chapter 7.
Presentation transcript:

Database Design

Database Design a structured methodology The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number of ordered formal processes with known inputs and expected outputs Objectives 1. derive relationships 2. evolve to meet user requirements 3. Do it right the first time!

Database Design Goals Reduce data redundancy. Provide stable data structures that can be readily changed with changing user requirements. Allow users to make ad hoc requests for data. Maintain complex relationships between data elements. Support a large variety of decision needs

Database Design data availability data reliability data currency data consistency data flexibility data efficiency Verify these criteria are satisfied via technical review

Logical Data Modeling 3 types of data objects: Entities Attributes Relationships ENTITIES: Are persons, places, or things about which data is to be, or is, gathered ATTRIBUTES : Are the properties of entities. Examples are Names, Tax Numbers, Age, Status RELATIONSHIPS : Describe how entities relate to each other eg Customers BUY Products Persons WORK_ON Jobs

Entities... Are persons, objects or events about which information is, or will be, recorded in the Database The designation of a ‘thing’ about which data is to be collected, stored or processed. Many of these Entities can be identified with Business Activities (e.g. suppliers, purchase orders, customer)

3 Steps in Design Designing a database involves choosing: 1. The tables that belong in the database. What are the entities? 2. The columns that belong in each table. What are the properties? 3. How tables and columns interact with each other. What do they have in common?

Database Design Functional Requirements Other matters Domains, Nulls, Derived Data, Encoded Data. Data Base Model Information Level Design Processes Final Information Level Design Physical Constraints Physical Level Design Final Database Structure

Logical Data Modeling 2 entities can be related as : One to One : (1 : 1) The interpretation of this is that an occurrence of an entity ‘A’ can relate to ONE and ONLY ONE occurrence of entity ‘B’, and an occurrence of entity ‘B’ can relate to ONE and ONLY ONE occurrence of entity ‘A’ One to Many : (1: N) The interpretation is that ONE occurrence of entity ‘A’ can relate to ONE or MORE occurrences of entity ‘B’, but an occurrence of entity ‘B’ can relate to ONE ONLY occurrence of entity ‘A’

Logical Data Modeling Many to Many (N : N) - a common business relationship The interpretation is that ONE or MORE occurrences of entity ‘A’ can relate to ONE or MORE occurrences of entity ‘B’ and ONE or MORE occurrences of entity ‘B’ can relate to ONE or MORE occurrences of entity ‘A’

Entity Relationships One to One 1:1 Book -----> Title Type Shown As Example One to One 1:1 Book -----> Title One to Many 1:N Publisher ---->Books Many to Many N:N Books <--->Authors

Normalization Normalization is the process of organizing data in a database. This includes creating tables and establishing relationships between those tables according to rules designed both to protect the data and to make the database more flexible by eliminating two factors: redundancy and inconsistent dependency.

Unnormalized Table Student# Advisor Adv-Room Class1 Class2 Class3 ------------------------------------------------------- 1022 Jones 412 101-07 143-01 159-02 4123 Smith 216 201-01 211-02 214-01

First Normal Form Eliminate repeating groups in individual tables. Create a separate table for each set of related data. Identify each set of related data with a primary key.

No Repeating Groups Student# Advisor Adv-Room Class# --------------------------------------- 1022 Jones 412 101-07 1022 Jones 412 143-01 1022 Jones 412 159-02 4123 Smith 216 201-01 4123 Smith 216 211-02 4123 Smith 216 214-01

Second Normal Form Create separate tables for sets of values that apply to multiple records. Relate these tables with a foreign key.

Eliminate Redundant Data The following two tables demonstrate second normal form: Students: Student# Advisor Adv-Room ------------------------------ 1022 Jones 412 4123 Smith 216 Registration: Student# Class# ------------------ 1022 101-07 1022 143-01 1022 159-02 4123 201-01 4123 211-02 4123 214-01

Third Normal Form Eliminate fields that do not depend on the key.

Eliminate data not dependant on key Students: Student# Advisor ------------------- 1022 Jones 4123 Smith Faculty: Name Room Dept -------------------- Jones 412 42 Smith 216 42

End Product of Data Base Design A database which will: Accurately reflect the ‘real world’ data in all required aspects Be responsive to Management information demands Reflect Business Rules and Controls Be capable of modification to meet changes in Management needs Be an asset to the Organization/Enterprise