Modern Systems Analysis and Design Sixth Edition

Similar documents
Modern Systems Analysis and Design

MINGGU Ke 8 Analisa dan Perancangan Sistem Informasi

Inputs. Decisions. Leads to

Modern Systems Analysis and Design Seventh Edition

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for

Figure 1-1a Data in context. Context helps users understand data

Modern Systems Analysis and Design Sixth Edition. Jeffrey A. Hoffer Joey F. George Joseph S. Valacich

Introduction to Database. Dr Simon Jones Thanks to Mariam Mohaideen

Objectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis

8) A top-to-bottom relationship among the items in a database is established by a

Introduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure

Physical Database Design and Performance (Significant Concepts)

OBJECTIVES DEFINITIONS CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS. Figure 1-1a Data in context

Management Information Systems MANAGING THE DIGITAL FIRM, 12 TH EDITION FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT

TIM 50 - Business Information Systems

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes

Management Information Systems

Chapter 4. The Relational Model

PowerPoint Presentation to Accompany GO! All In One. Chapter 13

Introduction to Computer Applications. CISY 1225 Chapter 10. Zahoor Khan, PhD

Institute of Southern Punjab, Multan

THE RELATIONAL DATABASE MODEL

Basant Group of Institution

Mahathma Gandhi University

Computers Are Your Future

Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis

Introduction to Databases

Relational Database Management Systems Oct/Nov I. Section-A: 5 X 4 =20 Marks

7) To be considered a composite key, a key must contain at least two attributes. Answer: TRUE

Managing Data Resources

Modern Systems Analysis and Design. Third Edition. Jeffrey A. Hoffer Joey F. George Joseph S. Valacich. Chapter 17 System Implementation

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS

Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science

Data about data is database Select correct option: True False Partially True None of the Above

Introduction to System Analysis and Design

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Indexing and Hashing

Course Outline Faculty of Computing and Information Technology

Review -Chapter 4. Review -Chapter 5

Navigate by Using Windows Explorer

Chapter 3: The Relational Database Model

Chapter Five Physical Database Design

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 6 Normalization of Database Tables

Teaching Scheme BIT/MMC/BCS Database Systems 1

Introduction to Databases

Information Systems Development COMM005 (CSM03) Autumn Semester 2009

Relational Database Management Systems Mar/Apr I. Section-A: 5 X 4 =20 Marks

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

DC62 Database management system JUNE 2013

DATABASE MANAGEMENT SYSTEM

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

Chapter 1: The Database Environment

Definition of terms Objectives Interpret history and role of SQL Define a database using SQL data definition iti language Write single table queries u

Introduction to SET08104

Introduction to Geographic Information Science. Updates. Last Lecture. Geography 4103 / Database Management

Essentials of Database Management

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010

OBJECTIVES. How to derive a set of relations from a conceptual data model. How to validate these relations using the technique of normalization.

Databases The McGraw-Hill Companies, Inc. All rights reserved.

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

16/06/56. Databases. Databases. Databases The McGraw-Hill Companies, Inc. All rights reserved.

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010

Chapter 13 Disk Storage, Basic File Structures, and Hashing.

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Chapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations

FAQ: Relational Databases in Accounting Systems

Relational Database Management Systems Oct I. Section-A: 5 X 4 =20 Marks

TIM 50 - Business Information Systems

Introduction Database Concepts

File Processing Approaches

Chapter 5: Physical Database Design. Designing Physical Files

ER Model. Objectives (2/2) Electricite Du Laos (EDL) Dr. Kanda Runapongsa Saikaew, Computer Engineering, KKU 1

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

U1. Data Base Management System (DBMS) Unit -1. MCA 203, Data Base Management System

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601

Classifying Physical Storage Media. Chapter 11: Storage and File Structure. Storage Hierarchy (Cont.) Storage Hierarchy. Magnetic Hard Disk Mechanism

Classifying Physical Storage Media. Chapter 11: Storage and File Structure. Storage Hierarchy. Storage Hierarchy (Cont.) Speed

Top 88 Question Asked in Part I of MIS 150 EXAM #1 (Chapter 1-4, Appendix C) Exams questions gathered from old tests dating back to Fall 2000

Activant Prophet 21 SQL Server Data Storage. SQL Server Administration suite: course 2 of 4

Chapter 12 Databases and Database Management Systems

Chapter 11 Database Concepts

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

Department of Industrial Engineering. Sharif University of Technology. Operational and enterprises systems. Exciting directions in systems

Module Documentation

Information Technology Audit & Cyber Security

Objectives. Format Slide Elements <#> 1

by Prentice Hall

File Structures and Indexing

CSIT5300: Advanced Database Systems

Data Base Concepts. Course Guide 2

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer DBMS

II B.Sc(IT) [ BATCH] IV SEMESTER CORE: RELATIONAL DATABASE MANAGEMENT SYSTEM - 412A Multiple Choice Questions.

Access 2016: Core Database Management, Manipulation, and Query Skills; Exam

Data, Information, and Databases

Standard. Number of Correlations

Relational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Modern Systems Analysis and Design Seventh Edition

Relational Database Components

Full file at

Indexing. Week 14, Spring Edited by M. Naci Akkøk, , Contains slides from 8-9. April 2002 by Hector Garcia-Molina, Vera Goebel

Transcription:

Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Designing Databases

Learning Objectives Concisely define each of the following key database design terms: relation, primary key, normalization, functional dependency, foreign key, referential integrity, field, data type, null value, denormalization, file organization, index, and secondary key. Explain the role of designing databases in the analysis and design of an information system. Transform an entity-relationship (E-R) diagram into an equivalent set of well-structured (normalized) relations. 2011 Pearson Education, Inc. Publishing as Prentice Hall 2

Learning Objectives (Cont.) Merge normalized relations from separate user views into a consolidated set of well-structured relations. Choose storage formats for fields in database tables. Translate well-structured relations into efficient database tables. Explain when to use different types of file organizations to store computer files. Describe the purpose of indexes and the important considerations in selecting attributes to be indexed. 2011 Pearson Education, Inc. Publishing as Prentice Hall 3

Introduction FIGURE 9-1 Systems development life cycle with design phase highlighted 2011 Pearson Education, Inc. Publishing as Prentice Hall 4

Database Design File and database design occurs in two steps. 1. Develop a logical database model, which describes data by using a database management system. Relational database model 2. Prescribe the technical specifications for computer files and databases in which to store the data. Physical database design provides specifications Logical and physical database design in parallel with other system design steps 2011 Pearson Education, Inc. Publishing as Prentice Hall 5

DB&DBMS&USERS 3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 6

FIGURE 9-2 Relationship between data modeling and the systems development life cycle 2011 Pearson Education, Inc. Publishing as Prentice Hall 7

The Process of Database Design (Cont.) Four key steps in logical database modeling and design: 1. Develop a logical data model for each known user interface for the application using normalization principles. 2. Combine normalized data requirements from all user interfaces into one combined logical database model (view integration). 3. Translate the conceptual E-R data model for the application into normalized data requirements. 4. Compare the logical database design with the translated E-R model and produce one final logical database model for the application. 2011 Pearson Education, Inc. Publishing as Prentice Hall 8

Physical Database Design Key physical database design decisions include: Choosing a storage format for each attribute from the logical database model. Grouping attributes from the logical database model into physical records. Arranging related records in secondary memory (hard disks and magnetic tapes) so that records can be stored, retrieved and updated rapidly. Selecting media and structures for storing data to make access more efficient. 2011 Pearson Education, Inc. Publishing as Prentice Hall 9

Deliverables and Outcomes Logical database design Must account for every data element on a system input or output. Normalized relations are the primary deliverable. Physical database design Converts relations into database tables. Programmers and database analysts code the definitions of the database. Written in Structured Query Language (SQL). 2011 Pearson Education, Inc. Publishing as Prentice Hall 10

Relational Database Model Relational database model: data represented as a set of related tables or relations Relation: a named, two-dimensional table of data; each relation consists of a set of named columns and an arbitrary number of unnamed rows 2011 Pearson Education, Inc. Publishing as Prentice Hall 11

Relational Database Model (Cont.) Relations have several properties that distinguish them from nonrelational tables: Entries in cells are simple. Entries in columns are from the same set of values. Each row is unique. The sequence of columns can be interchanged without changing the meaning or use of the relation. The rows may be interchanged or stored in any sequence. 2011 Pearson Education, Inc. Publishing as Prentice Hall 12

Well-Structured Relation and Primary Keys Well-Structured Relation (or table) A relation that contains a minimum amount of redundancy Allows users to insert, modify, and delete the rows without (تناقضات) errors or inconsistencies Primary Key An attribute whose value is unique across all occurrences of a relation All relations have a primary key. This is how rows are ensured to be unique. A primary key may involve a single attribute or be composed of multiple attributes. 2011 Pearson Education, Inc. Publishing as Prentice Hall 13

Normalization and Rules of Normalization Normalization: the process of converting complex data structures into simple, stable data structures The result of normalization is that every nonprimary key attribute depends upon the whole primary key. 2011 Pearson Education, Inc. Publishing as Prentice Hall 14

Normalization and Rules of Normalization In relational database design, the process of organizing data to minimize redundancy. Normalization usually involves dividing a database into two or more tables and defining relationships between the tables. The objective is to isolate ) )عزل data so that additions, deletions, and modifications of a field can be made in just one table and then (نشر) propagated through the rest of the database via the defined relationships. 3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 15

Normalization and Rules of Normalization There are three main normal forms, each with increasing levels of normalization: First Normal Form (1NF): Each field in a table contains different information. For example, in an employee list, each table would contain only one birthdate field. 3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 16

3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 17

3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 18

3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 19

3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 20

Normalization and Rules of Normalization Second Normal Form (2NF): Each field in a table that is not a determiner of the contents of another field must itself be a function of the other fields in the table. 3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 21

3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 22

3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 23

Normalization and Rules of Normalization Third Normal Form (3NF): No duplicate information is permitted. So, for example, if two tables both require a birthdate field, the birthdate information would be separated into a separate table, and the two other tables would then access the birthdate information via an index field in the birthdate table. Any change to a birthdate would automatically be reflect in all tables that link to the birthdate table. 3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 24

3/14/2016 2011 Pearson Education, Inc. Publishing as Prentice Hall 25

Transforming E-R Diagrams into Relations It is useful to transform the conceptual data model into a set of normalized relations. Steps Represent entities. Represent relationships. Normalize the relations. Merge the relations. 2011 Pearson Education, Inc. Publishing as Prentice Hall 26

Merging Relations Purpose is to remove redundant relations The last step in logical database design 2011 Pearson Education, Inc. Publishing as Prentice Hall 27

View Integration Problems Must understand the meaning of the data and be prepared to resolve any problems that arise in the process Synonyms: two different names used for the same attribute(birth date) When merging, get agreement from users on a single, standard name 2011 Pearson Education, Inc. Publishing as Prentice Hall 28

View Integration Problems (Cont.) Homonyms:a single attribute name that is used for two or more different attributes. (name) Resolved by creating a new name Dependencies between nonkeys dependencies may be created as a result of view integration To resolve, the new relation must be normalized 2011 Pearson Education, Inc. Publishing as Prentice Hall 29

Designing Fields (Cont.) Field: In database systems, fields are the smallest units of information you can access. Most fields have certain attributes associated with them. For example, some fields are numeric whereas others are textual, some are long, while others are short. In addition, every field has a name, called the field name. Data Type: a coding scheme recognized by system software for representing organizational data 2011 Pearson Education, Inc. Publishing as Prentice Hall 30

Choosing Data Types Selecting a data type balances four objectives: Minimize storage space. Represent all possible values of the field. Improve data integrity of the field. Support all data manipulations desired on the field. 2011 Pearson Education, Inc. Publishing as Prentice Hall 31

Calculated Fields Calculated (or computed or derived) field: a field that can be derived from other database fields It is common for an attribute to be mathematically related to other data. The calculate value is either stored or computed when it is requested. 2011 Pearson Education, Inc. Publishing as Prentice Hall 32

Controlling Data Integrity Default Value: a value a field will assume unless an explicit value is entered for that field Range Control: limits range of values that can be entered into field. Both numeric and alphanumeric data Referential Integrity: an integrity constraint specifying that the value of an attribute in one relation depends on the value of the same attribute in another relation Null Value: a special field value, distinct from zero, blank, or any other value, that indicates that the value for the field is missing or otherwise unknown 2011 Pearson Education, Inc. Publishing as Prentice Hall 33

Designing Physical Tables Relational database is a set of related tables. Physical Table: a named set of rows and columns that specifies the fields in each row of the table Denormalization: the process of splitting or combining normalized relations into physical tables based on similarity of use of rows and fields Denormalization optimizes certain data processing activities at the expense of others. 2011 Pearson Education, Inc. Publishing as Prentice Hall 34

File Organizations File organization: a technique for physically arranging the records of a file Physical file: a named set of table rows stored in a adjacent section of secondary memory 2011 Pearson Education, Inc. Publishing as Prentice Hall 35

File Organizations (Cont.) Sequential file organization: a file organization in which rows in a file are stored in sequence according to a primary key value(by defining the "Term" field as the primary key, it would ensure that no term is listed more than once in the database.) Hashed file organization: a file organization in which the address for each row is determined using an algorithm Pointer: a field of data that can be used to locate a related field or row of data 2011 Pearson Education, Inc. Publishing as Prentice Hall 36

Arranging Table Rows Objectives for choosing file organization Fast data retrieval High throughput for processing transactions Efficient use of storage space Protection from failures or data loss Minimizing need for reorganization Accommodating growth Security from unauthorized use 2011 Pearson Education, Inc. Publishing as Prentice Hall 37

Designing Controls for Files Two of the goals of physical table design are protection from failure or data loss and security from unauthorized use. These goals are achieved primarily by implementing controls on each file. Two other important types of controls address file backup and security. 2011 Pearson Education, Inc. Publishing as Prentice Hall 38

Designing Controls for Files (Cont.) Techniques for file restoration include: Periodically making a backup copy of a file. Storing a copy of each change to a file in a transaction log or audit trail. Storing a copy of each row before or after it is changed. Means of building data security into a file include: Coding, or encrypting, the data in the file. Requiring data file users to identify themselves by entering user names and passwords. Prohibiting users from directly manipulating any data in the file by forcing users to work with a copy (real or virtual). 2011 Pearson Education, Inc. Publishing as Prentice Hall 39

Summary In this chapter you learned how to: Concisely define each of the following key database design terms: relation, primary key, normalization, functional dependency, foreign key, referential integrity, field, data type, null value, denormalization, file organization, index, and secondary key. Explain the role of designing databases in the analysis and design of an information system. Transform an entity-relationship (E-R) diagram into an equivalent set of well-structured (normalized) relations. 2011 Pearson Education, Inc. Publishing as Prentice Hall 40

Summary (Cont.) Merge normalized relations from separate user views into a consolidated set of well-structured relations. Choose storage formats for fields in database tables. Translate well-structured relations into efficient database tables. Explain when to use different types of file organizations to store computer files. Describe the purpose of indexes and the important considerations in selecting attributes to be indexed. 2011 Pearson Education, Inc. Publishing as Prentice Hall 41

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright 2011 Pearson Education, Inc. Publishing as Prentice Hall