Modern Systems Analysis and Design Seventh Edition

Similar documents
Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Chapter 1. Introduction to Computers and C++ Programming. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

One advantage that SONAR has over any other music-sequencing product I ve worked

1 Enterprise Modeler

Chapter 11. Friends, Overloaded Operators, and Arrays in Classes. Copyright 2014 Pearson Addison-Wesley. All rights reserved.

Modern Systems Analysis and Design

Task scenarios Outline. Scenarios in Knowledge Extraction. Proposed Framework for Scenario to Design Diagram Transformation

A SOFTWARE MODEL FOR THE MULTILAYER PERCEPTRON

In this chapter, you learn the concepts and terminology of databases and

Chapter 10. Defining Classes. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

Baan Tools User Management

Elementary Educational Computer

Python Programming: An Introduction to Computer Science

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Appendix D. Controller Implementation

BOOLEAN MATHEMATICS: GENERAL THEORY

Chapter 5. Functions for All Subtasks. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

Baan Finance Financial Statements

Chapter 9. Pointers and Dynamic Arrays. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

CSC 220: Computer Organization Unit 11 Basic Computer Organization and Design

Data Warehousing. Paper

9.1. Sequences and Series. Sequences. What you should learn. Why you should learn it. Definition of Sequence

Chapter 4 Threads. Operating Systems: Internals and Design Principles. Ninth Edition By William Stallings

3D Model Retrieval Method Based on Sample Prediction

Schema for the DCE Security Registry Server

Python Programming: An Introduction to Computer Science

Chapter 4. Procedural Abstraction and Functions That Return a Value. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

How do we evaluate algorithms?

Interactive PMCube Explorer

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 13 Control and Sequencing: Hardwired and Microprogrammed Control

Ones Assignment Method for Solving Traveling Salesman Problem

Τεχνολογία Λογισμικού

GE FUNDAMENTALS OF COMPUTING AND PROGRAMMING UNIT III

Operating System Concepts. Operating System Concepts

Improvement of the Orthogonal Code Convolution Capabilities Using FPGA Implementation

IMP: Superposer Integrated Morphometrics Package Superposition Tool

Human-Computer Interaction IS4300

Security of Bluetooth: An overview of Bluetooth Security

Morgan Kaufmann Publishers 26 February, COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 5

South Slave Divisional Education Council. Math 10C

Performance Plus Software Parameter Definitions

Basic allocator mechanisms The course that gives CMU its Zip! Memory Management II: Dynamic Storage Allocation Mar 6, 2000.

Chapter 8. Strings and Vectors. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

Software development of components for complex signal analysis on the example of adaptive recursive estimation methods.

Automatic Generation of Minimal and Safe Transactions in Conceptual Database Design

Lecture Notes 6 Introduction to algorithm analysis CSS 501 Data Structures and Object-Oriented Programming

ER modeling and Relational Database Design. Fernando J. Pineda

The Magma Database file formats

n Learn how resiliency strategies reduce risk n Discover automation strategies to reduce risk

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Oracle Release Management Implementation Manual

Chapter 2. C++ Basics. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

CS : Programming for Non-Majors, Summer 2007 Programming Project #3: Two Little Calculations Due by 12:00pm (noon) Wednesday June

Functional Dependencies and Normalization

FPGA IMPLEMENTATION OF BASE-N LOGARITHM. Salvador E. Tropea

Oracle Process Manufacturing

Computers and Scientific Thinking

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 4. The Processor. Part A Datapath Design

Fast Fourier Transform (FFT) Algorithms

A New Morphological 3D Shape Decomposition: Grayscale Interframe Interpolation Method

Math 10C Long Range Plans

Goals of the Lecture UML Implementation Diagrams

New HSL Distance Based Colour Clustering Algorithm

Data diverse software fault tolerance techniques

Chapter 8. Strings and Vectors. Copyright 2014 Pearson Addison-Wesley. All rights reserved.

Chapter 2 and 3, Data Pre-processing

Air Force Data Reference Architecture and Platform

Improving Template Based Spike Detection

Descriptive Statistics Summary Lists

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Goals of this Lecture Activity Diagram Example

Sorting in Linear Time. Data Structures and Algorithms Andrei Bulatov

BAAN IVc/BaanERP. Conversion Guide Oracle7 to Oracle8

CIS 121 Data Structures and Algorithms with Java Spring Stacks, Queues, and Heaps Monday, February 18 / Tuesday, February 19

Course Site: Copyright 2012, Elsevier Inc. All rights reserved.

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 4. The Processor Advanced Issues

Introduction. Nature-Inspired Computing. Terminology. Problem Types. Constraint Satisfaction Problems - CSP. Free Optimization Problem - FOP

Customer Portal Quick Reference User Guide

Copyright 1982, by the author(s). All rights reserved.

CSE 2320 Notes 8: Sorting. (Last updated 10/3/18 7:16 PM) Idea: Take an unsorted (sub)array and partition into two subarrays such that.

BEA WebLogic XML/Non-XML Translator. Samples Guide

Lower Bounds for Sorting

BAAN IVb/c. Structure, master data, and configuration of BEMIS

Using VTR Emulation on Avid Systems

CMSC Computer Architecture Lecture 10: Caches. Prof. Yanjing Li University of Chicago

An Improved Shuffled Frog-Leaping Algorithm for Knapsack Problem

Data Analysis. Concepts and Techniques. Chapter 2. Chapter 2: Getting to Know Your Data. Data Objects and Attribute Types

Τεχνολογία Λογισμικού

Morgan Kaufmann Publishers 26 February, COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 5.

Code Review Defects. Authors: Mika V. Mäntylä and Casper Lassenius Original version: 4 Sep, 2007 Made available online: 24 April, 2013

The University of Adelaide, School of Computer Science 22 November Computer Architecture. A Quantitative Approach, Sixth Edition.

Structuring Redundancy for Fault Tolerance. CSE 598D: Fault Tolerant Software

BEA Tuxedo. Creating CORBA Server Applications

Lecture 5. Counting Sort / Radix Sort

Fundamentals of. Chapter 1. Microprocessor and Microcontroller. Dr. Farid Farahmand. Updated: Tuesday, January 16, 2018

l-1 text string ( l characters : 2lbytes) pointer table the i-th word table of coincidence number of prex characters. pointer table the i-th word

FEATURE BASED RECOGNITION OF TRAFFIC VIDEO STREAMS FOR ONLINE ROUTE TRACING

APPLICATION NOTE PACE1750AE BUILT-IN FUNCTIONS

Running Time. Analysis of Algorithms. Experimental Studies. Limitations of Experiments

Transcription:

Moder Systems Aalysis ad Desig Seveth Editio Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Desigig Databases

Learig Objectives ü Cocisely defie each of the followig key database desig terms: relatio, primary key, ormalizatio, fuctioal depedecy, foreig key, referetial itegrity, field, data type, ull value, deormalizatio, file orgaizatio, idex, ad secodary key. ü Explai the role of desigig databases i the aalysis ad desig of a iformatio system. ü Trasform a etity-relatioship (E-R) diagram ito a equivalet set of well-structured (ormalized) relatios. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 2

Learig Objectives (Cot.) ü Merge ormalized relatios from separate user views ito a cosolidated set of well-structured relatios. ü Choose storage formats for fields i database tables. ü Traslate well-structured relatios ito efficiet database tables. ü Explai whe to use differet types of file orgaizatios to store computer files. ü Describe the purpose of idexes ad the importat cosideratios i selectig attributes to be idexed. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 3

Itroductio FIGURE 9-1 Systems developmet life cycle with desig phase highlighted 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 4

Database Desig File ad database desig occurs i two steps. 1. Develop a logical database model, which describes data usig otatio that correspods to a data orgaizatio used by a database maagemet system. Relatioal database model 2. Prescribe the techical specificatios for computer files ad databases i which to store the data. Physical database desig provides specificatios Logical ad physical database desig i parallel with other system desig steps 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 5

The Process of Database Desig FIGURE 9-2 Relatioship betwee data modelig ad the systems developmet life cycle 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 6

The Process of Database Desig (Cot.) Four key steps i logical database modelig ad desig: 1. Develop a logical data model for each kow user iterface for the applicatio usig ormalizatio priciples. 2. Combie ormalized data requiremets from all user iterfaces ito oe cosolidated logical database model (view itegratio). 3. Traslate the coceptual E-R data model for the applicatio ito ormalized data requiremets. 4. Compare the cosolidated logical database desig with the traslated E-R model ad produce oe fial logical database model for the applicatio. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 7

Physical Database Desig Key physical database desig decisios iclude: Choosig a storage format for each attribute from the logical database model. Groupig attributes from the logical database model ito physical records. Arragig related records i secodary memory (hard disks ad magetic tapes) so that records ca be stored, retrieved ad updated rapidly. Selectig media ad structures for storig data to make access more efficiet. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 8

Deliverables ad Outcomes Logical database desig Must accout for every data elemet o a system iput or output Normalized relatios are the primary deliverable. Physical database desig Coverts relatios ito database tables Programmers ad database aalysts code the defiitios of the database. Writte i Structured Query Laguage (SQL) 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 9

FIGURE 9-3 (d) Coceptual data model ad trasformed relatios 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 10

Relatioal Database Model Relatioal database model: data represeted as a set of related tables or relatios Relatio: a amed, two-dimesioal table of data; each relatio cosists of a set of amed colums ad a arbitrary umber of uamed rows 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 11

Relatioal Database Model (Cot.) Relatios have several properties that distiguish them from orelatioal tables: Etries i cells are simple. Etries i colums are from the same set of values. Each row is uique. The sequece of colums ca be iterchaged without chagig the meaig or use of the relatio. The rows may be iterchaged or stored i ay sequece. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 12

Well-Structured Relatio ad Primary Keys Well-Structured Relatio (or table) A relatio that cotais a miimum amout of redudacy Allows users to isert, modify, ad delete the rows without errors or icosistecies Primary Key A attribute whose value is uique across all occurreces of a relatio All relatios have a primary key. This is how rows are esured to be uique. A primary key may ivolve a sigle attribute or be composed of multiple attributes. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 13

Normalizatio ad Rules of Normalizatio Normalizatio: the process of covertig complex data structures ito simple, stable data structures The result of ormalizatio is that every oprimary key attribute depeds upo the whole primary key. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 14

Normalizatio ad Rules of Normalizatio (Cot.) First Normal Form (1NF) Uique rows, o multivalued attributes All relatios are i 1NF Secod Normal Form (2NF) Each oprimary key attribute is idetified by the whole key (called full fuctioal depedecy) Third Normal Form (3NF) Noprimary key attributes do ot deped o each other (i.e. o trasitive depedecies) 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 15

Fuctioal Depedecies ad Primary Keys Fuctioal Depedecy: a particular relatioship betwee two attributes For a give relatio, attribute B is fuctioally depedet o attribute A if, for every valid value of A, that value of A uiquely determies the value of B. The fuctioal depedece of B o A is represeted by A B. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 16

Fuctioal Depedecies ad Primary Keys (Cot.) Fuctioal depedecy is ot a mathematical depedecy. Istaces (or sample data) i a relatio do ot prove the existece of a fuctioal depedecy. Kowledge of problem domai is most reliable method for idetifyig fuctioal depedecy. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 17

Secod Normal Form (2NF) A relatio is i secod ormal form (2NF) if ay of the followig coditios apply: The primary key cosists of oly oe attribute. No oprimary key attributes exist i the relatio. Every oprimary key attribute is fuctioally depedet o the full set of primary key attributes. To covert a relatio ito 2NF, decompose the relatio ito ew relatios usig the attributes, called determiats, that determie other attributes. The determiats are the primary keys of the ew relatios. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 18

Third Normal Form (3NF) A relatio is i third ormal form (3NF) if it is i secod ormal form (2NF) ad there are o fuctioal (trasitive) depedecies betwee two (or more) oprimary key attributes. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 19

2014 Pearso Educatio, Ic. Publishig as Pretice Hall 20

Third Normal Form (3NF) (Cot.) Foreig Key: a attribute that appears as a oprimary key attribute i oe relatio ad as a primary key attribute (or part of a primary key) i aother relatio Referetial Itegrity: a itegrity costrait specifyig that the value (or existece) of a attribute i oe relatio depeds o the value (or existece) of the same attribute i aother relatio 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 21

Trasformig E-R Diagrams ito Relatios It is useful to trasform the coceptual data model ito a set of ormalized relatios. Steps Represet etities. Represet relatioships. Normalize the relatios. Merge the relatios. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 22

Represetig Etities Each regular etity is trasformed ito a relatio. The idetifier of the etity type becomes the primary key of the correspodig relatio. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 23

Represetig Etities The primary key must satisfy the followig two coditios. The value of the key must uiquely idetify every row i the relatio. The key should be oredudat. The etity type label is traslated ito a relatio ame. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 24

Biary 1:N ad 1:1Relatioships The procedure for represetig relatioships depeds o both the degree of the relatioship uary, biary, terary ad the cardialities of the relatioship. Biary 1:N Relatioship is represeted by addig the primary key attribute (or attributes) of the etity o the oe side of the relatioship as a foreig key i the relatio that is o the may side of the relatioship. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 25

Biary 1:N ad 1:1Relatioships (Cot.) Biary or Uary 1:1 Relatioship is represeted by ay of the followig choices: Add the primary key of A as a foreig key of B. Add the primary key of B as a foreig key of A. Both of the above 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 26

2014 Pearso Educatio, Ic. Publishig as Pretice Hall 27

Biary ad Higher-Degree M:N Relatioships Create aother relatio ad iclude primary keys of all relatios as primary key of ew relatio 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 28

2014 Pearso Educatio, Ic. Publishig as Pretice Hall 29

Uary Relatioships Uary 1:N Relatioship Is modeled as a relatio Primary key of that relatio is the same as for the etity type Foreig key is added to the relatio that refereces the primary key values Recursive foreig key: a foreig key i a relatio that refereces the primary key values of that same relatio 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 30

Uary Relatioships Uary M:N Relatioship Model as oe relatio, the Create a separate relatio to represet the M:N relatioship. The primary key of the ew relatio is a composite key of two attributes that both take their values from the same primary key. Ay attribute associated with the relatioship is icluded as a okey attribute i this ew relatio. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 31

FIGURE 9-13 Two uary relatioships (a) EMPLOYEE with Maages relatioship (1:N) (b) Bill-of-materials structure (M:N) 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 32

Mergig Relatios Purpose is to remove redudat relatios The last step i logical database desig Prior to physical file ad database desig 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 33

View Itegratio Problems Must uderstad the meaig of the data ad be prepared to resolve ay problems that arise i the process Syoyms: two differet ames used for the same attribute Whe mergig, get agreemet from users o a sigle, stadard ame. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 34

View Itegratio Problems (Cot.) Homoyms: a sigle attribute ame that is used for two or more differet attributes. Resolved by creatig a ew ame Depedecies betwee okeys depedecies may be created as a result of view itegratio To resolve, the ew relatio must be ormalized 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 35

View Itegratio Problems (Cot.) Class/Subclass relatioships may be hidde i user views or relatios Resolved by creatig a ew ame 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 36

FIGURE 9-16 Class diagram correspodig to ormalized relatios of Hoosier Burger s ivetory cotrol system 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 37

Relatios for Hoosier Burger 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 38

Physical File ad Database Desig The followig iformatio is required: Normalized relatios, icludig volume estimates Defiitios of each attribute Descriptios of where ad whe data are used, etered, retrieved, deleted, ad updated (icludig frequecies) Expectatios or requiremets for respose time ad data itegrity Descriptios of the techologies used for implemetig the files ad database 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 39

Desigig Fields Field: the smallest uit of amed applicatio data recogized by system software Attributes from relatios will be represeted as fields Data Type: a codig scheme recogized by system software for represetig orgaizatioal data 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 40

Choosig Data Types Selectig a data type balaces four objectives: Miimize storage space. Represet all possible values of the field. Improve data itegrity of the field. Support all data maipulatios desired o the field. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 41

2014 Pearso Educatio, Ic. Publishig as Pretice Hall 42

Calculated Fields Calculated (or computed or derived) field: a field that ca be derived from other database fields It is commo for a attribute to be mathematically related to other data. The calculate value is either stored or computed whe it is requested. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 43

Cotrollig Data Itegrity Default Value: a value a field will assume uless a explicit value is etered for that field Rage Cotrol: limits rage of values that ca be etered ito field Both umeric ad alphaumeric data Referetial Itegrity: a itegrity costrait specifyig that the value (or existece) of a attribute i oe relatio depeds o the value (or existece) of the same attribute i aother relatio Null Value: a special field value, distict from zero, blak, or ay other value, that idicates that the value for the field is missig or otherwise ukow 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 44

Desigig Physical Tables Relatioal database is a set of related tables. Physical Table: a amed set of rows ad colums that specifies the fields i each row of the table Deormalizatio: the process of splittig or combiig ormalized relatios ito physical tables based o affiity of use of rows ad fields Deormalizatio optimizes certai data processig activities at the expese of others. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 45

Desigig Physical Tables (Cot.) Three types of table partitioig: Rage partitioig: partitios are defied by ooverlappig rages of values for a specified attribute Hash partitioig: a table row is assiged to a partitio by a algorithm ad the maps the specified attribute value to a partitio Composite partitioig: combies rage ad hash partitioig by first segregatig data by rages o the desigated attribute, ad the withi each of these partitios 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 46

Desigig Physical Tables (Cot.) Various forms of deormalizatio, which ivolves combiig data from several ormalized tables, ca be doe. No hard-ad-fast rules for decidig Three commo situatios where deormalizatio may be used: Two etities with a oe-to-oe relatioship A may-to-may relatioship (associative etity) with okey attributes Referece data 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 47

File Orgaizatios File orgaizatio: a techique for physically arragig the records of a file Physical file: a amed set of table rows stored i a cotiguous sectio of secodary memory 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 48

File Orgaizatios (Cot.) 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 49

File Orgaizatios (Cot.) Sequetial file orgaizatio: a file orgaizatio i which rows i a file are stored i sequece accordig to a primary key value Hashed file orgaizatio: a file orgaizatio i which the address for each row is determied usig a algorithm Poiter: a field of data that ca be used to locate a related field or row of data 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 50

Arragig Table Rows Objectives for choosig file orgaizatio Fast data retrieval High throughput for processig trasactios Efficiet use of storage space Protectio from failures or data loss Miimizig eed for reorgaizatio Accommodatig growth Security from uauthorized use 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 51

Idexed File Orgaizatio Idexed file orgaizatio: a file orgaizatio i which rows are stored either sequetially or osequetially, ad a idex is created that allows software to locate idividual rows Idex: a table used to determie the locatio of rows i a file that satisfy some coditio Secodary keys: oe or a combiatio of fields for which more tha oe row may have the same combiatio of values 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 52

Idexed File Orgaizatio (Cot.) Mai disadvatages: Extra space required to store the idexes Extra time ecessary to access ad maitai idexes Mai advatage: Allows for both radom ad sequetial processig Guidelies for choosig idexes Specify a uique idex for the primary key of each table. Specify a idex for foreig keys. Specify a idex for okey fields that are refereced i qualificatio, sortig ad groupig commads for the purpose of retrievig data. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 53

Desigig Cotrols for Files Two of the goals of physical table desig are protectio from failure or data loss ad security from uauthorized use. These goals are achieved primarily by implemetig cotrols o each file. Two other importat types of cotrols address file backup ad security. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 54

Desigig Cotrols for Files (Cot.) Techiques for file restoratio iclude: Periodically makig a backup copy of a file. Storig a copy of each chage to a file i a trasactio log or audit trail. Storig a copy of each row before or after it is chaged. Meas of buildig data security ito a file iclude: Codig, or ecryptig, the data i the file. Requirig data file users to idetify themselves by eterig user ames ad passwords. Prohibitig users from directly maipulatig ay data i the file by forcig users to work with a copy (real or virtual). 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 55

Physical Database Desig for Hoosier Burger The followig decisios eed to be made: Decide to create oe or more fields for each attribute ad determie a data type for each field. For each field, decide if it is calculated; eeds to be coded or compressed; must have a default value or picture; or must have rage, referetial itegrity, or ull value cotrols. For each relatio, decide if it should be deormalized to achieve desired processig efficiecies. Choose a file orgaizatio for each physical file. Select suitable cotrols for each file ad the database. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 56

Electroic Commerce Applicatio: Desigig Databases Desigig databases for Pie Valley Furiture s WebStore Review the coceptual model (E-R diagram). Examie the lists of attributes for each etity. Complete the database desig. Share all desig iformatio with project team to be tured ito a workig database durig implemetatio. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 57

Summary I this chapter you leared how to: ü Cocisely defie each of the followig key database desig terms: relatio, primary key, ormalizatio, fuctioal depedecy, foreig key, referetial itegrity, field, data type, ull value, deormalizatio, file orgaizatio, idex, ad secodary key. ü Explai the role of desigig databases i the aalysis ad desig of a iformatio system. ü Trasform a etity-relatioship (E-R) diagram ito a equivalet set of well-structured (ormalized) relatios. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 58

Summary (Cot.) ü Merge ormalized relatios from separate user views ito a cosolidated set of well-structured relatios. ü Choose storage formats for fields i database tables. ü Traslate well-structured relatios ito efficiet database tables. ü Explai whe to use differet types of file orgaizatios to store computer files. ü Describe the purpose of idexes ad the importat cosideratios i selectig attributes to be idexed. 2014 Pearso Educatio, Ic. Publishig as Pretice Hall 59

Copyright 2014 Pearso Educatio, Ic. Publishig as Pretice Hall