Database Design. Why Database?: From Data … Simple dumping of data on the storage medium provides little value. Database System2 idnameaddresscountrypay.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management Tenth Edition
Advertisements

Introduction to Databases
Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
Database Design S511 Session 3, IU-SLIS.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 6 Database Design
File Systems and Databases
Chapter 9 Database Design
Ch1: File Systems and Databases Hachim Haddouti
File Systems and Databases Hachim Haddouti
Chapter 9 Database Design
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Database Systems: Design, Implementation, and Management Ninth Edition
Chapter 9 Database Design
Lecture 9 – Database Design
9 1 Chapter 9 Database Design Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
6 Chapter 6 Database Design Hachim Haddouti. 6 2 Hachim Haddouti and Rob & Coronel, Ch6 In this chapter, you will learn: That successful database design.
CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS
IST 210 Database Design Process IST 210 Todd S. Bacastow.
Chapter 6 Database Design.
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Database Systems: Design, Implementation, and Management Ninth Edition
Chapter 1 Database Systems. Good decisions require good information derived from raw facts Data is managed most efficiently when stored in a database.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database System Development Lifecycle © Pearson Education Limited 1995, 2005.
Chapter 8 Database Design
Chapter 1: The Database Environment and Development Process
Database Design - Lecture 1
ITEC224 Database Programming
Database Design Adapted from Database Systems: Design, Implementation, and Management Eighth Edition Rob, Coronel.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
ITEC 3220M Using and Designing Database Systems
IST 210 Database Design Process IST 210 Todd S. Bacastow January 2005.
Database Systems: Design, Implementation, and Management
1 Database Systems: Design, Implementation, and Management CHAPTER 6 Database Design.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Database Systems: Design, Implementation, and Management Ninth Edition
8 1 Chapter 8 Database Design Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
1 Chapter 9 Database Design. 2 2 In this chapter, you will learn: That successful database design must reflect the information system of which the database.
Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
Introduction to Database Systems
1Mr.Mohammed Abu Roqyah. Introduction and Conceptual Modeling 2Mr.Mohammed Abu Roqyah.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
Chapter Two ( Data Model) Objectives Introduction to Data Models What are the Data Models Why they are important Learn how to design a DBMS.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
Chapter(1) Introduction and conceptual modeling. Basic definitions Data : know facts that can be recorded and have an implicit. Database: a collection.
8 8 Chapter 8 The University Lab: Conceptual Design Verification, Logical Design, and Implementation Database Systems: Design, Implementation, and Management.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
IS 325 Notes for Wednesday August 28, Data is the Core of the Enterprise.
6 6 Chapter 6 Database Design Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 1 DATABASE SYSTEMS Instructor Ms. Arwa Binsaleh.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
Database Design.
Database Systems Database Systems: Design, Implementation, and Management, Rob and Coronel.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
2 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Data Models Why data models are important About the basic data-modeling.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
IST 210 Database Design Process IST 210, Section 1 Todd S. Bacastow January 2004.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Database Systems: Design, Implementation, and Management Tenth Edition
Database Development Lifecycle
Database Development Lifecycle
ITEC 3220A Using and Designing Database Systems
Database Design Process
Chapter 6 Database Design
Chapter 6 Database Design
Database Development Lifecycle
Presentation transcript:

Database Design

Why Database?: From Data … Simple dumping of data on the storage medium provides little value. Database System2 idnameaddresscountrypay due 100J. Rodney12 High Rd., LeedsUK E. Hoover52 Ln. Muncie, INUSA0 800M. OldBox. 9, Miami, FLUSA12.50 product_idtitlecostsale price Joy of Living Learning Judo Your Dream Home PRODUCT CUSTOMER SALE idzoneproduct_idquantitytotal price 100UK USMW UK USSE

Why Database?: … Towards Information  The goal is not just storage of data, but ultimately the extraction of information to support decision making by key people and groups in the organization.  Data  Information (e.g. reports, tabulations, graphs)  Decisions Database System3 - Summarized fact or information - * In the UK ZONE, Joy of Living had a sale of $38.50, and Learning Judo had a sale of $25. ** UK ZONE had the total sale of $63.50, USMW had $24.25, and USSE had $ TitleUKUSMWUSSE total Joy of Living Learning Judo Your Dream Home SALE by Zone** *

Why Database?: … for Decision Making Database System4 Database Systems: Design, Implementation, & Management: Rob & Coronel (DBMS)

Database Design: Intro Database System Provides data collection, storage, and retrieval Composed of people, hardware, software, database(s), procedures, and application programs applications transform data into information (e.g., report, tabulation, graphic display) Database Design Foundation of a successful database system Should promote data integrity prevent data redundancies & anomalies Must yield a database that is efficient in its provision of data access. meet the objectives of the database system and serves the needs of its users. Database System5

Data Redundancy Database System6 Database Systems: Design, Implementation, & Management: Rob & Coronel

Data Anomaly Database System7  Update anomalies - Data inconsistencies resulting from “islands of information” problem  Insertion a nomalies - Creation of empty cells when adding new data (e.g. new agent)  Deletion anomalies - Unintended deletion of related data (e.g. customer data when deleting an agent) Database Systems: Design, Implementation, & Management: Rob & Coronel

Database Development System Construction System Analysis Establish the need and extent of an information system System Development Design & Implement the information system Database Construction Phase 1: Planning & Analysis Database Development Phase 2: Database Design – Create complete, normalized, and integrated database models – Establish data management processes Phase 3: Implementation – Create storage structure – Load data into database – Provide for data management activities » data entry/update, report generation, search Phase 4: Maintenance – (corrective & adaptive) modification, upgrade, backup & recovery Database System8

Database Lifecycle : Phase 1 Planning & Analysis  Discover Company Objectives Operations & Structure  what they are  how they function  how they interact Information Flow  Identify Problems & Constraints  Define Database Specifications →objectives →scope & boundaries Database System9 Database Systems: Design, Implementation, & Management: Rob & Coronel Planning & AnalysisDatabase DesignImplementMaintain

Database Lifecycle: Phase 2  Database Design  Create Database Model To support company operations & objectives To meet system & user requirements  Focus on Data Requirements Problems  Solutions  Info  Data Data structure & access Data to info. transformation  Subphases Conceptual Design – ER Model DBMS software selection – Cost, features, portability, hardware Logical Design – Translate conceptual design to DBMS Physical Design – Data storage, access Database System10 Database Systems: Design, Implementation, & Management: Rob & Coronel Two Views of Data Planning & AnalysisDatabase DesignImplementMaintain

DB Design - Conceptual Design Create a conceptual model Abstraction of physical world to represent its key characteristics Software and hardware independent Minimal Data Rule: “All that is needed is there, and all that is there is needed.” Make sure that all data needed are in the model, and that all data in the model are needed. Conceptual Design Steps Data Analysis & Requirements From the understanding of how business works and what role data plays  Discover the data that can be transformed into desired information  Develop a thorough understanding of the company’s data E-R Modeling Business Rule  Entities, Relationships, Attributes  ER Model  Normalization  Verification Database System11 Planning & AnalysisDatabase DesignImplementMaintain

DB Design - Conceptual Design: E-R Modeling E-R Modeling steps 1. Identify, analyze, and refine the business rulebusiness rule 2. Identify the main entities 3. Define the relationships among entities 4. Define attributes, primary keys, and foreign keys for each entity 5. Create an initial E-R diagram 6. Normalize the entities process for evaluating & designing good table structures  reduce data redundancies & help eliminate data anomalies 7. Verify the model & modify the E-R diagram iteratively Verify the model Confirm that intended processes can be supported by the database model  Business Rule  interviews, written documentation, observation Brief but precise descriptions of operations in an organization – enhance understanding & facilitate communication – promote creation of an accurate data model Example – A painter can draw many paintings. A painting is drawn by a single painter. Database System12 Planning & AnalysisDatabase DesignImplementMaintain

Database Lifecycle: Phase 3 & 4 Implementation Create the database Tables, forms, queries, reports Programming: SQL, VBA Security provisions: password, access rights, data encryption Fine-tune Repeated testing, debugging and evaluation Maintenance Preventative maintenance To prevent and prepare for problem situations (e.g. backup) Corrective maintenance To address database system error (e.g. recovery) Adaptive maintenance To adapt to the external changes (e.g. database update, enhancement) General maintenance Security audits, system-usage analysis Database System13 Planning & AnalysisDatabase DesignImplementMaintain

DB Lifecycle: Designer’s Perspective Database System14 Planning Analysis conceptual design Implementation Maintenance Design is a never-ending process...

DB Lifecycle: Step 1. Planning Strategic Planning Objectives: Understand the business model – Organizational goal – Product and information flow Product and information flow Assess the information need Put together an initial database plan Activities: Take stock of what is in place Interacts with users at all levels – end-user, managers, support staff Database System15 Business Plan or Org. Goals Information Needs Database Plan Database Development Projects PlanningAnalysisDesignImplementMaintain

Product & Info Flow in Organization DB designer must establish the product & info flow in the organization. Database System16 Business Office: Book Purchasing Inventory Management Store Publishers Warehouse Customers Barney & Nimble Inc. PlanningAnalysisDesignImplementMaintain

Product & Information flow varies from organization to organization. Warehouse and inventory can use information about orders going out to publishers. Online department needs to have information on inventory. Online department can also use information about pending orders. Database System17 Amazing.com Book Purchasing & Collection Management Warehouse Maintenance & Inventory Online Presence & Sales Publishers & Distribution Centers Fulfillment Customers Product & Info Flow in Organization PlanningAnalysisDesignImplementMaintain

Database System18 Publishers Consumers Amazing Sales & Acquisition Group invoice & other data electronic payments record screens queries Warehouse shipping info inventory update Periodic Management Report Centralized Information Flow PlanningAnalysisDesignImplementMaintain

Requirement Analysis Examination of existing database environment What hardware and software are available? What files/records are in use? What is under development? From Information Need to Database Requirement What type of information is desired? What can database system do to satisfy the information need? Why design it? What would it improve? Feasibility Analysis Technological – hardware, software, technical infrastructure Operational – who will implement, maintain, support, operate DB? Economical – cost vs. benefit Database System19 DB Lifecycle: Step 2. Analysis PlanningAnalysisDesignImplementMaintain

Conceptual Design Map organizational & user needs to a conceptual model Data ModelingData Modeling  Relational tables, attributes, & constraints Representation of reality that retains only carefully selected essential details. Logical organization of data for optimum information extraction and data manipulation Event Table list of events that will occur within the database system Use Cases description of how users will interact with the system User interfaces Database System20 Conceptual Data Model E-R modeling Relational Data Model Relational DBMS Schema & Normalization DB Lifecycle: Step 3. Design PlanningAnalysisDesignImplementMaintain

Data Modeling: Bank Example Database System21 Customer ID# BirthdayGender# EmployeeOrg. Type PersonInstitution Savings Account Balance Checking Account Has Chkg-Acct Has Sav-Acct Balance N N M M

Appendix Database System22

DB Design - Conceptual Design: Data Analysis & RequirementsConceptual Design Discover the data that can be transformed into desired information Information Need What kind of information is needed? – what output (queries & reports) must be generated by the system? User Characteristics Who will use the information? How will information be used? Information Source Where is the information to be found? How is the information to be extracted? Information Constitution What data elements are needed to produce the information? What are the data attributes and relationships? What data transformations are to be used to produce the information? Develop a thorough understanding of the company’s data Flow, uses, characteristics Data Flow Diagram Data sources Interviews, direct observation Business Rules Narrative description of policy & procedures Database System23 Planning & AnalysisDatabase DesignImplementMaintain

What Brief, precise, and unambiguous descriptions of operations in an organization based on policies, procedures, or principles within a specific organization help to create and enforce actions within that organization’s environment apply to any organization that stores and uses data to generate information Why Enhance understanding & facilitate communication Standardize company’s view of data Constitute a communications tool between users and designers Allow designer to understand business process as well as the nature, role, and scope of data Promote creation of an accurate data model How (sources) Interviews Company managers, Policy makers, Department managers, End users Written documentation Procedures, Standards, Operations manuals Observation Business operations  Examples A painter can draw many paintings. A painting is drawn by a single painter. A teacher can teach 0 to 6 courses per semester. A student must take at least 1 and at most 6 courses. Database System24 Planning & AnalysisDatabase DesignImplementMaintain Conceptual Design – ER Modeling: Business RulesER Modeling

 E-R model is verified against proposed system processes.  Corroboration that intended processes can be supported by the database model  Careful reevaluation of the entities and detailed examination of attributes  Verification of business transactions as well as system and user requirements  May reveal additional entity and attribute details.  Verification process is iterative. 1.identify ER model’s central entity 2.identify modules/subsystems & components 3.identify transaction requirements update/insert/delete/query/report user interface 4.verify all processes against ER model 5.make necessary changes 6.repeat steps 2 through 5 Database System25 Database Systems: Design, Implementation, & Management: Rob & Coronel Conceptual Design – ER Modeling: E-R Model VerificationER Modeling Planning & AnalysisDatabase DesignImplementMaintain

What are the advantages & disadvantages? Cost purchase, maintenance, operational, training, etc. Features & Tools ease-of-use, performance, DB administration, etc. application development tools DB model hierarchical, RDB, Object-oriented, etc. Portability platform, O/S, SQL Hardware requirement processor, RAM Database System26 DB Design - Conceptual Design: DBMS SelectionConceptual Design Planning & AnalysisDatabase DesignImplementMaintain

Logical Design Translate conceptual design into internal model that maps objects in model to specific DBMS constructs From software independent to software dependent Detailed & functional descriptions of system components Specify system processes and I/O. e.g., table design, attribute definitions, access restrictions Physical Design Select the data storage and data access characteristics of the database More important in older hierarchical and network models Becomes more complex when data are distributed at different locations Can affect the database performance e.g. storage media, buffer size, etc. Designers favor software that hides physical details Database System27 DB Design: Logical & Physical Design Planning & AnalysisDatabase DesignImplementMaintain

DB Lifecycle - Analysis: Feasibility Analysis Technological Feasibility What hardware, software, and additional resources would be needed? What is available in-house? What has to be purchased? How will the new system be integrated? Operational Feasibility Who will design the system? Who will maintain the system? Who will do training or help-desk support? Can the available personnel provide the time? New personnel necessary? Economic Feasibility Expected cost of the overall project ($)? Software, hardware, application development, staff-time Hidden cost (unforeseen) Other costs What is the competition/comparable unit doing? Would data sharing among departments lead to additional expenses? Benefits How soon expected? Database System28 PlanningAnalysisDesignImplementMaintain

What is Data Modeling? A model is a representation of reality that retains only carefully selected essential details. Logical organization of data for optimum information extraction and data manipulation Why Model? To understand and identify essential data elements To produce a representation that can be transformed into a schema How? Data modeling involves identifying entities, attributes, and relationships Database System29 DB Lifecycle - Design: Data Modeling PlanningAnalysisDesignImplementMaintain